diff options
author | Kuba Brecka <kuba.brecka@gmail.com> | 2015-03-22 18:00:58 +0000 |
---|---|---|
committer | Kuba Brecka <kuba.brecka@gmail.com> | 2015-03-22 18:00:58 +0000 |
commit | 0e66c49d627cca0c85621180d23cd8fb9d5e512b (patch) | |
tree | a3797e33da0433f5e7c1a81b64922207cdb5bcaa | |
parent | 283629a0f70948f348873dd9d787b9ab5b8f11d4 (diff) | |
download | bcm5719-llvm-0e66c49d627cca0c85621180d23cd8fb9d5e512b.tar.gz bcm5719-llvm-0e66c49d627cca0c85621180d23cd8fb9d5e512b.zip |
Fix a flaky heap-overflow-large.cc test
Reviewed at http://reviews.llvm.org/D8515
llvm-svn: 232920
-rw-r--r-- | compiler-rt/test/asan/TestCases/heap-overflow-large.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/asan/TestCases/heap-overflow-large.cc b/compiler-rt/test/asan/TestCases/heap-overflow-large.cc index eb2fcc3220e..566b1158a5d 100644 --- a/compiler-rt/test/asan/TestCases/heap-overflow-large.cc +++ b/compiler-rt/test/asan/TestCases/heap-overflow-large.cc @@ -15,9 +15,9 @@ int main(int argc, char *argv[]) { int *x = new int[5]; memset(x, 0, sizeof(x[0]) * 5); int index = atoi(argv[1]); - int res = x[index]; + unsigned res = x[index]; // CHECK: main // CHECK-NOT: CHECK failed delete[] x; - return res ? res : 1; + return (res % 10) + 1; } |