From: Ryan Govostes Date: Wed, 30 Mar 2016 22:21:58 +0000 (+0000) Subject: [asan] Mark the initialization-bug.cc unsupported on OS X Yosemite and older X-Git-Tag: llvmorg-3.9.0-rc1~10458 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0f41da0496f90750a52169cc2a7c1a35061c7ac;p=platform%2Fupstream%2Fllvm.git [asan] Mark the initialization-bug.cc unsupported on OS X Yosemite and older 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 --- diff --git a/compiler-rt/test/asan/TestCases/initialization-bug.cc b/compiler-rt/test/asan/TestCases/initialization-bug.cc index 8c7d1cd..1f843be 100644 --- a/compiler-rt/test/asan/TestCases/initialization-bug.cc +++ b/compiler-rt/test/asan/TestCases/initialization-bug.cc @@ -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 // The structure of the test is: diff --git a/compiler-rt/test/lit.common.cfg b/compiler-rt/test/lit.common.cfg index e0f9b27..c1a70ff 100644 --- a/compiler-rt/test/lit.common.cfg +++ b/compiler-rt/test/lit.common.cfg @@ -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