From bf534ea5f4e2479e14da1a1d7f9a797780337a4c Mon Sep 17 00:00:00 2001 From: Bo Ren Date: Tue, 7 Nov 2023 17:08:39 +0800 Subject: [PATCH] fix test failure Signed-off-by: Bo Ren --- 1000-fix-test-failure-for-anolis.patch | 8 ++++++++ clang.spec | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 1000-fix-test-failure-for-anolis.patch diff --git a/1000-fix-test-failure-for-anolis.patch b/1000-fix-test-failure-for-anolis.patch new file mode 100644 index 0000000..7431a4a --- /dev/null +++ b/1000-fix-test-failure-for-anolis.patch @@ -0,0 +1,8 @@ +--- BUILD/clang-15.0.7.src/test/Driver/XRay/xray-instrument-os.c.orig 2023-11-09 16:52:28.934104446 +0800 ++++ BUILD/clang-15.0.7.src/test/Driver/XRay/xray-instrument-os.c 2023-11-09 16:56:23.676949149 +0800 +@@ -1,4 +1,4 @@ + // RUN: not %clang -o /dev/null -v -fxray-instrument -c %s +-// XFAIL: -linux-, -freebsd, x86_64-apple-darwin, x86_64-apple-macos ++// XFAIL: -linux-, -freebsd, x86_64-apple-darwin, x86_64-apple-macos, Anolis-linux + // REQUIRES: amd64 || x86_64 || x86_64h || arm || aarch64 || arm64 + typedef int a; diff --git a/clang.spec b/clang.spec index b7d3cbb..77977d5 100644 --- a/clang.spec +++ b/clang.spec @@ -70,6 +70,9 @@ Patch7: 0010-PATCH-clang-Produce-DWARF4-by-default.patch Patch8: disable-recommonmark.patch Patch9: 0001-Support-LoongArch.patch +Patch100: 1000-fix-test-failure-for-anolis.patch + + # Patches for clang-tools-extra %if %{without compat_build} Patch201: 0001-clang-tools-extra-Make-test-dependency-on-LLVMHello-.patch @@ -628,6 +631,7 @@ false * Wed Jul 19 2023 Zhao Hang - 15.0.7-1.0.2 - Add loongarch64 arch +- fix test failure (rb01097748@alibaba-inc.com) * Fri Jun 30 2023 Zhao Hang - 15.0.7-1.0.1 - Rebrand for Anolis OS -- Gitee