[asan] Mark the initialization-bug.cc unsupported on OS X Yosemite and older
authorRyan Govostes <rzg@apple.com>
Wed, 30 Mar 2016 22:21:58 +0000 (22:21 +0000)
committerRyan Govostes <rzg@apple.com>
Wed, 30 Mar 2016 22:21:58 +0000 (22:21 +0000)
This test should fail on OS X Yosemite and older, and pass on OS X El Capitan
and newer as well as on other platforms.

llvm-svn: 264938

compiler-rt/test/asan/TestCases/initialization-bug.cc
compiler-rt/test/lit.common.cfg

index 8c7d1cd..1f843be 100644 (file)
@@ -8,6 +8,9 @@
 // FIXME: https://code.google.com/p/address-sanitizer/issues/detail?id=186
 // XFAIL: win32
 
+// The test is expected to fail on OS X Yosemite and older
+// UNSUPPORTED: osx-no-ld64-live_support
+
 #include <cstdio>
 
 // The structure of the test is:
index e0f9b27..c1a70ff 100644 (file)
@@ -125,6 +125,12 @@ if config.host_os == 'Darwin':
     if osx_version >= (10, 11):
       config.available_features.add('osx-autointerception')
       config.available_features.add('osx-ld64-live_support')
+    else:
+      # The ASAN initialization-bug.cc test should XFAIL on OS X systems
+      # older than El Capitan. By marking the test as being unsupported with
+      # this "feature", we can pass the test on newer OS X versions and other
+      # platforms.
+      config.available_features.add('osx-no-ld64-live_support')
   except:
     pass