Skip to content

Commit 418c91a

Browse files
author
Ryan Govostes
committed
[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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@264938 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent d5db7e4 commit 418c91a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Diff for: test/asan/TestCases/initialization-bug.cc

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
// FIXME: https://code.google.com/p/address-sanitizer/issues/detail?id=186
99
// XFAIL: win32
1010

11+
// The test is expected to fail on OS X Yosemite and older
12+
// UNSUPPORTED: osx-no-ld64-live_support
13+
1114
#include <cstdio>
1215

1316
// The structure of the test is:

Diff for: test/lit.common.cfg

+6
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ if config.host_os == 'Darwin':
125125
if osx_version >= (10, 11):
126126
config.available_features.add('osx-autointerception')
127127
config.available_features.add('osx-ld64-live_support')
128+
else:
129+
# The ASAN initialization-bug.cc test should XFAIL on OS X systems
130+
# older than El Capitan. By marking the test as being unsupported with
131+
# this "feature", we can pass the test on newer OS X versions and other
132+
# platforms.
133+
config.available_features.add('osx-no-ld64-live_support')
128134
except:
129135
pass
130136

0 commit comments

Comments
 (0)