diff options
| author | Alexey Samsonov <samsonov@google.com> | 2013-06-06 09:23:34 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2013-06-06 09:23:34 +0000 |
| commit | 2874f70250286e581c3b15be0f1f8ad3b9e86aa5 (patch) | |
| tree | 30f7d3da64697083dc294311eac536d1421bb989 /compiler-rt/lib/asan/lit_tests/log-path_test.cc | |
| parent | 15439bcf79decf81f94bfaf2e4b39167bf954b18 (diff) | |
| download | bcm5719-llvm-2874f70250286e581c3b15be0f1f8ad3b9e86aa5.tar.gz bcm5719-llvm-2874f70250286e581c3b15be0f1f8ad3b9e86aa5.zip | |
[ASan] move all lit_tests under TestCases
llvm-svn: 183395
Diffstat (limited to 'compiler-rt/lib/asan/lit_tests/log-path_test.cc')
| -rw-r--r-- | compiler-rt/lib/asan/lit_tests/log-path_test.cc | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/compiler-rt/lib/asan/lit_tests/log-path_test.cc b/compiler-rt/lib/asan/lit_tests/log-path_test.cc deleted file mode 100644 index 1072670fbff..00000000000 --- a/compiler-rt/lib/asan/lit_tests/log-path_test.cc +++ /dev/null @@ -1,39 +0,0 @@ -// RUN: %clangxx_asan %s -o %t - -// Regular run. -// RUN: not %t 2> %t.out -// RUN: FileCheck %s --check-prefix=CHECK-ERROR < %t.out - -// Good log_path. -// RUN: rm -f %t.log.* -// RUN: ASAN_OPTIONS=log_path=%t.log not %t 2> %t.out -// RUN: FileCheck %s --check-prefix=CHECK-ERROR < %t.log.* - -// Invalid log_path. -// RUN: ASAN_OPTIONS=log_path=/INVALID not %t 2> %t.out -// RUN: FileCheck %s --check-prefix=CHECK-INVALID < %t.out - -// Too long log_path. -// RUN: ASAN_OPTIONS=log_path=`for((i=0;i<10000;i++)); do echo -n $i; done` \ -// RUN: not %t 2> %t.out -// RUN: FileCheck %s --check-prefix=CHECK-LONG < %t.out - -// Run w/o errors should not produce any log. -// RUN: rm -f %t.log.* -// RUN: ASAN_OPTIONS=log_path=%t.log %t ARG ARG ARG -// RUN: not cat %t.log.* - - -#include <stdlib.h> -#include <string.h> -int main(int argc, char **argv) { - if (argc > 2) return 0; - char *x = (char*)malloc(10); - memset(x, 0, 10); - int res = x[argc * 10]; // BOOOM - free(x); - return res; -} -// CHECK-ERROR: ERROR: AddressSanitizer -// CHECK-INVALID: ERROR: Can't open file: /INVALID -// CHECK-LONG: ERROR: Path is too long: 01234 |

