[compiler-rt] r264938 - [asan] Mark the initialization-bug.cc unsupported on OS X Yosemite and older
Ryan Govostes via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 30 15:21:59 PDT 2016
Author: rgov
Date: Wed Mar 30 17:21:58 2016
New Revision: 264938
URL: http://llvm.org/viewvc/llvm-project?rev=264938&view=rev
Log:
[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.
Modified:
compiler-rt/trunk/test/asan/TestCases/initialization-bug.cc
compiler-rt/trunk/test/lit.common.cfg
Modified: compiler-rt/trunk/test/asan/TestCases/initialization-bug.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/initialization-bug.cc?rev=264938&r1=264937&r2=264938&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/initialization-bug.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/initialization-bug.cc Wed Mar 30 17:21:58 2016
@@ -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:
Modified: compiler-rt/trunk/test/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lit.common.cfg?rev=264938&r1=264937&r2=264938&view=diff
==============================================================================
--- compiler-rt/trunk/test/lit.common.cfg (original)
+++ compiler-rt/trunk/test/lit.common.cfg Wed Mar 30 17:21:58 2016
@@ -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
More information about the llvm-commits
mailing list