diff options
author | Kuba Brecka <kuba.brecka@gmail.com> | 2015-03-12 10:44:34 +0000 |
---|---|---|
committer | Kuba Brecka <kuba.brecka@gmail.com> | 2015-03-12 10:44:34 +0000 |
commit | 3c53266ca89647ca5bf45cba0f4db6a689d911da (patch) | |
tree | a5794c0b3be9dcd1fbba647c4e5db8ac352f2bee | |
parent | 6698d842861e0b9c6a3a2199e37fdd98bff01e7d (diff) | |
download | bcm5719-llvm-3c53266ca89647ca5bf45cba0f4db6a689d911da.tar.gz bcm5719-llvm-3c53266ca89647ca5bf45cba0f4db6a689d911da.zip |
Make the UBSan coverage-levels.cc test be Linux specific
Reviewed at http://reviews.llvm.org/D8278
llvm-svn: 232025
-rw-r--r-- | compiler-rt/test/ubsan/TestCases/Misc/Linux/coverage-levels.cc (renamed from compiler-rt/test/ubsan/TestCases/Misc/coverage-levels.cc) | 2 | ||||
-rw-r--r-- | compiler-rt/test/ubsan/TestCases/Misc/Linux/lit.local.cfg | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/compiler-rt/test/ubsan/TestCases/Misc/coverage-levels.cc b/compiler-rt/test/ubsan/TestCases/Misc/Linux/coverage-levels.cc index 2fe12ffefd4..02521722f61 100644 --- a/compiler-rt/test/ubsan/TestCases/Misc/coverage-levels.cc +++ b/compiler-rt/test/ubsan/TestCases/Misc/Linux/coverage-levels.cc @@ -14,8 +14,6 @@ // RUN: %clangxx -fsanitize=shift -O1 -fsanitize-coverage=3 %s -o %t // RUN: UBSAN_OPTIONS=$OPT ASAN_OPTIONS=$OPT %run %t 2>&1 | FileCheck %s --check-prefix=CHECK3 --check-prefix=CHECK_WARN -// XFAIL: darwin - volatile int sink; int main(int argc, char **argv) { int shift = argc * 32; diff --git a/compiler-rt/test/ubsan/TestCases/Misc/Linux/lit.local.cfg b/compiler-rt/test/ubsan/TestCases/Misc/Linux/lit.local.cfg new file mode 100644 index 00000000000..57271b8078a --- /dev/null +++ b/compiler-rt/test/ubsan/TestCases/Misc/Linux/lit.local.cfg @@ -0,0 +1,9 @@ +def getRoot(config): + if not config.parent: + return config + return getRoot(config.parent) + +root = getRoot(config) + +if root.host_os not in ['Linux']: + config.unsupported = True |