summaryrefslogtreecommitdiff
path: root/test/asan/TestCases
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2018-03-09 23:12:32 +0000
committerDan Liew <dan@su-root.co.uk>2018-03-09 23:12:32 +0000
commit1164bd823b1935a3f50c2bcce4c9ead8291933ab (patch)
treef0542363c1ce6b012284ce7a65162771b59e1751 /test/asan/TestCases
parentf505320f53517f24d70259f78f84ef1e0dba4e72 (diff)
[asan] Clean up the REQUIRES of `asan/TestCases/strcat-overlap.cc`
by explicitly listing where we expect this test to work. Because this test invokes undefined behaviour all sorts of things can happen (e.g. crash, or on some bots asan manages to catch something). The test seems to pass okay on Darwin (x86_64/x86_64/i386) and on Linux (x86_64/i386) so explicitly require one of these platforms to run the test. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@327185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/TestCases')
-rw-r--r--test/asan/TestCases/strcat-overlap.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/asan/TestCases/strcat-overlap.cc b/test/asan/TestCases/strcat-overlap.cc
index fa1f72525..89991fbd7 100644
--- a/test/asan/TestCases/strcat-overlap.cc
+++ b/test/asan/TestCases/strcat-overlap.cc
@@ -26,7 +26,11 @@
// RUN: echo "interceptor_name:strcat" > %t.supp
// RUN: %env_asan_opts=suppressions='"%t.supp"' %run %t
-// REQUIRES: (target-is-x86_64 || target-is-x86_64h) && !ios
+// This test when run with suppressions invokes undefined
+// behavior which can cause all sorts of bad things to happen
+// depending on how strcat() is implemented. For now only run
+// on platforms where we know the test passes.
+// REQUIRES: x86_64h-darwin || x86_64-darwin || i386-darwin || x86_64-linux || i386-linux
// UNSUPPORTED: win32
// UNSUPPORTED: android