[compiler-rt] f3a0895 - Temporarily disable the following failing tests on Darwin:

Dan Liew via llvm-commits llvm-commits at lists.llvm.org
Wed May 27 19:33:46 PDT 2020


Author: Dan Liew
Date: 2020-05-27T19:32:06-07:00
New Revision: f3a089506fdcc4a1d658697009572c93e00c4373

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

LOG: Temporarily disable the following failing tests on Darwin:

  AddressSanitizer-Unit :: ./Asan-i386-calls-Test/AddressSanitizer.LongJmpTest
  AddressSanitizer-Unit :: ./Asan-i386-calls-Test/AddressSanitizer.SigLongJmpTest
  AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.LongJmpTest
  AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.SigLongJmpTest

These failures will be examined properly when time permits.

rdar://problem/62141412

Added: 
    

Modified: 
    compiler-rt/lib/asan/tests/asan_test.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/asan/tests/asan_test.cpp b/compiler-rt/lib/asan/tests/asan_test.cpp
index edc98ed18520..83b0b0e8d33e 100644
--- a/compiler-rt/lib/asan/tests/asan_test.cpp
+++ b/compiler-rt/lib/asan/tests/asan_test.cpp
@@ -588,6 +588,9 @@ NOINLINE void TouchStackFunc() {
     A[i] = i*i;
 }
 
+// Disabled due to rdar://problem/62141412
+#if !(defined(__APPLE__) && defined(__i386__))
+
 // Test that we handle longjmp and do not report false positives on stack.
 TEST(AddressSanitizer, LongJmpTest) {
   static jmp_buf buf;
@@ -597,6 +600,7 @@ TEST(AddressSanitizer, LongJmpTest) {
     TouchStackFunc();
   }
 }
+#endif
 
 #if !defined(_WIN32)  // Only basic longjmp is available on Windows.
 NOINLINE void UnderscopeLongJmpFunc1(jmp_buf buf) {
@@ -658,6 +662,8 @@ TEST(AddressSanitizer, UnderscopeLongJmpTest) {
   }
 }
 
+// Disabled due to rdar://problem/62141412
+#if !(defined(__APPLE__) && defined(__i386__))
 TEST(AddressSanitizer, SigLongJmpTest) {
   static sigjmp_buf buf;
   if (!sigsetjmp(buf, 1)) {
@@ -668,6 +674,8 @@ TEST(AddressSanitizer, SigLongJmpTest) {
 }
 #endif
 
+#endif
+
 // FIXME: Why does clang-cl define __EXCEPTIONS?
 #if defined(__EXCEPTIONS) && !defined(_WIN32)
 NOINLINE void ThrowFunc() {


        


More information about the llvm-commits mailing list