diff options
author | Tim Northover <tnorthover@apple.com> | 2016-10-24 19:07:27 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2016-10-24 19:07:27 +0000 |
commit | a327647d2e6ac92d168dbb2ba134c0d857161feb (patch) | |
tree | b44e798ebd9ea82a655579931bb8aa60e130bef8 /test/asan/TestCases/strstr-1.c | |
parent | 80a21854664e6f3df944110edc9e057e0f2367d6 (diff) |
[asan] relax strstr tests.
Darwin's implementation of strstr seems to trigger slightly different failure
modes from Linux since it calls strncmp. All messages seem about equally useful
and correct, so I relaxed the tests so Darwin can pass.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@285004 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/TestCases/strstr-1.c')
-rw-r--r-- | test/asan/TestCases/strstr-1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/asan/TestCases/strstr-1.c b/test/asan/TestCases/strstr-1.c index d0fa25bc6..06a8a8a55 100644 --- a/test/asan/TestCases/strstr-1.c +++ b/test/asan/TestCases/strstr-1.c @@ -15,7 +15,7 @@ int main(int argc, char **argv) { char s1[4] = "acb"; __asan_poison_memory_region ((char *)&s1[2], 2); r = strstr(s1, s2); - // CHECK:'s1' <== Memory access at offset {{[0-9]+}} partially overflows this variable + // CHECK:'s1' <== Memory access at offset {{[0-9]+}} {{partially overflows this variable|is inside this variable}} assert(r == s1 + 1); return 0; } |