diff --git a/0001-Disable-CrashRecoveryTest.DumpStackCleanup-test.patch b/0001-Disable-CrashRecoveryTest.DumpStackCleanup-test.patch new file mode 100644 index 0000000..4bb1037 --- /dev/null +++ b/0001-Disable-CrashRecoveryTest.DumpStackCleanup-test.patch @@ -0,0 +1,35 @@ +From e52a3e21848a61ec707a88c89cab5ecc61c27146 Mon Sep 17 00:00:00 2001 +From: Nikita Popov +Date: Mon, 31 Jan 2022 10:33:27 +0100 +Subject: [PATCH] Disable CrashRecoveryTest.DumpStackCleanup test + +Produces a non-reproducible failure on aarch64: +https://bugzilla.redhat.com/show_bug.cgi?id=2048440 +--- + llvm/unittests/Support/CrashRecoveryTest.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/llvm/unittests/Support/CrashRecoveryTest.cpp b/llvm/unittests/Support/CrashRecoveryTest.cpp +index e95513eb2841..00e701ceb7f5 100644 +--- a/llvm/unittests/Support/CrashRecoveryTest.cpp ++++ b/llvm/unittests/Support/CrashRecoveryTest.cpp +@@ -76,6 +76,7 @@ TEST(CrashRecoveryTest, Cleanup) { + llvm::CrashRecoveryContext::Disable(); + } + ++#if 0 + TEST(CrashRecoveryTest, DumpStackCleanup) { + SmallString<128> Filename; + std::error_code EC = sys::fs::createTemporaryFile("crash", "test", Filename); +@@ -101,6 +102,7 @@ TEST(CrashRecoveryTest, DumpStackCleanup) { + EXPECT_EQ(GlobalInt, 1); + llvm::CrashRecoveryContext::Disable(); + } ++#endif + + TEST(CrashRecoveryTest, LimitedStackTrace) { + std::string Res; +-- +2.34.1 + + diff --git a/llvm.spec b/llvm.spec index 1a9316b..7f7a68f 100644 --- a/llvm.spec +++ b/llvm.spec @@ -90,7 +90,13 @@ Source4: lit.fedora.cfg.py %if 0%{?abi_revision} Patch0: 0001-cmake-Allow-shared-libraries-to-customize-the-soname.patch %endif -Patch2: 0001-XFAIL-missing-abstract-variable.ll-test-on-ppc64le.patch +Patch1: 0001-XFAIL-missing-abstract-variable.ll-test-on-ppc64le.patch + +# Disable the CrashRecoveryTest.DumpStackCleanup test on aarch64 due to a +# non-reproducible failure: https://bugzilla.redhat.com/show_bug.cgi?id=2048440 +%ifarch aarch64 +Patch2: 0001-Disable-CrashRecoveryTest.DumpStackCleanup-test.patch +%endif BuildRequires: gcc BuildRequires: gcc-c++