[llvm-branch-commits] [compiler-rt] da05802 - [scudo] Disable the GetRssFromBuffer scudo test on PPC

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Mar 3 23:51:02 PST 2023


Author: Amy Kwan
Date: 2023-03-03T23:50:17-08:00
New Revision: da0580260e83e7354f82e0abdc5f4f65a6a2e6c1

URL: https://github.com/llvm/llvm-project/commit/da0580260e83e7354f82e0abdc5f4f65a6a2e6c1
DIFF: https://github.com/llvm/llvm-project/commit/da0580260e83e7354f82e0abdc5f4f65a6a2e6c1.diff

LOG: [scudo] Disable the GetRssFromBuffer scudo test on PPC

The GetRssFromBuffer scudo test case fails intermittently on Power, so this test
is disabled on the platform because of this.

(cherry picked from commit 0e3ef5f89749a599c652c546214a8307e3495526)

Added: 
    

Modified: 
    compiler-rt/lib/scudo/standalone/tests/common_test.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/scudo/standalone/tests/common_test.cpp b/compiler-rt/lib/scudo/standalone/tests/common_test.cpp
index c53b6af316d2c..a322a01fb9391 100644
--- a/compiler-rt/lib/scudo/standalone/tests/common_test.cpp
+++ b/compiler-rt/lib/scudo/standalone/tests/common_test.cpp
@@ -69,7 +69,9 @@ TEST(ScudoCommonTest, Zeros) {
   unmap(P, Size, 0, &Data);
 }
 
-#if SCUDO_LINUX
+#if SCUDO_LINUX && !defined(__powerpc__)
+// This test fails intermediately on PPC, which is why this test is disabled
+// for now on this platform.
 TEST(ScudoCommonTest, GetRssFromBuffer) {
   constexpr int64_t AllocSize = 10000000;
   constexpr int64_t Error = 3000000;


        


More information about the llvm-branch-commits mailing list