diff options
author | Yury Gribov <y.gribov@samsung.com> | 2015-06-10 07:16:02 +0000 |
---|---|---|
committer | Yury Gribov <y.gribov@samsung.com> | 2015-06-10 07:16:02 +0000 |
commit | 3856120598c388065825462f223c3868acbddd4d (patch) | |
tree | 3260642491da47a7f5c1731a50a585e354c9db3e /test/asan/TestCases/strspn-2.c | |
parent | 0a7aba721e4f430c949d18c2f9b95182ff42927f (diff) |
[ASan] Quick-fix tests for new string interceptors.
Patch by Maria Guseva.
Differential Revision: http://reviews.llvm.org/D10336
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@239461 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/TestCases/strspn-2.c')
-rw-r--r-- | test/asan/TestCases/strspn-2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/asan/TestCases/strspn-2.c b/test/asan/TestCases/strspn-2.c index dbd7b7872..d9f831d45 100644 --- a/test/asan/TestCases/strspn-2.c +++ b/test/asan/TestCases/strspn-2.c @@ -9,11 +9,11 @@ int main(int argc, char **argv) { size_t r; - char s1[] = "cc"; + char s1[] = "bbc"; char s2[] = {'a', 'b'}; char s3 = 0; r = strspn(s1, s2); // CHECK:'s{{[2|3]}}' <== Memory access at offset {{[0-9]+ .*}}flows this variable - assert(r == 0); + assert(r >= 2); return 0; } |