diff options
| author | Timur Iskhodzhanov <timurrrr@google.com> | 2014-05-28 13:06:14 +0000 |
|---|---|---|
| committer | Timur Iskhodzhanov <timurrrr@google.com> | 2014-05-28 13:06:14 +0000 |
| commit | 7f29181323428e6ec073eb46ec6fd4d31ff23fb9 (patch) | |
| tree | 8d2e98a6438694553a09a8aa48f8c27cb2e4cdf8 /compiler-rt/test | |
| parent | 152b023b975eb89d1ad75522f29f629fa82a9978 (diff) | |
| download | bcm5719-llvm-7f29181323428e6ec073eb46ec6fd4d31ff23fb9.tar.gz bcm5719-llvm-7f29181323428e6ec073eb46ec6fd4d31ff23fb9.zip | |
[ASan tests] Exclude some tests from Windows runs
Some features are not supported yet and some are not planned to be fixed soon
llvm-svn: 209733
Diffstat (limited to 'compiler-rt/test')
17 files changed, 55 insertions, 2 deletions
diff --git a/compiler-rt/test/asan/TestCases/default_options.cc b/compiler-rt/test/asan/TestCases/default_options.cc index c77dd49e6cc..6453f66a952 100644 --- a/compiler-rt/test/asan/TestCases/default_options.cc +++ b/compiler-rt/test/asan/TestCases/default_options.cc @@ -1,6 +1,9 @@ // RUN: %clangxx_asan -O2 %s -o %t // RUN: %run %t 2>&1 | FileCheck %s +// __asan_default_options() are not supported on Windows. +// XFAIL: win32 + const char *kAsanDefaultOptions="verbosity=1 foo=bar"; extern "C" diff --git a/compiler-rt/test/asan/TestCases/free_hook_realloc.cc b/compiler-rt/test/asan/TestCases/free_hook_realloc.cc index 2040cad5dc0..14cdae5e536 100644 --- a/compiler-rt/test/asan/TestCases/free_hook_realloc.cc +++ b/compiler-rt/test/asan/TestCases/free_hook_realloc.cc @@ -1,6 +1,10 @@ // Check that free hook doesn't conflict with Realloc. // RUN: %clangxx_asan -O2 %s -o %t // RUN: %run %t 2>&1 | FileCheck %s + +// Malloc/free hooks are not supported on Windows. +// XFAIL: win32 + #include <stdlib.h> #include <unistd.h> diff --git a/compiler-rt/test/asan/TestCases/log-path_test.cc b/compiler-rt/test/asan/TestCases/log-path_test.cc index cac0c5fb3b7..f68c94c7c8f 100644 --- a/compiler-rt/test/asan/TestCases/log-path_test.cc +++ b/compiler-rt/test/asan/TestCases/log-path_test.cc @@ -23,6 +23,8 @@ // RUN: env ASAN_OPTIONS=log_path=%t.log %run %t ARG ARG ARG // RUN: not cat %t.log.* +// FIXME: log_path is not supported on Windows yet. +// XFAIL: win32 #include <stdlib.h> #include <string.h> diff --git a/compiler-rt/test/asan/TestCases/malloc_context_size.cc b/compiler-rt/test/asan/TestCases/malloc_context_size.cc index 9f7ba4055c6..fb158c61a18 100644 --- a/compiler-rt/test/asan/TestCases/malloc_context_size.cc +++ b/compiler-rt/test/asan/TestCases/malloc_context_size.cc @@ -16,12 +16,16 @@ int main() { // CHECK-Linux-NEXT: #0 0x{{.*}} in operator delete[] // CHECK-Darwin: freed by thread T{{.*}} here: // CHECK-Darwin-NEXT: #0 0x{{.*}} in wrap__ZdaPv + // CHECK-Windows: freed by thread T{{.*}} here: + // CHECK-Windows-NEXT: #0 0x{{.*}} in operator delete[] // CHECK-NOT: #1 0x{{.*}} // CHECK-Linux: previously allocated by thread T{{.*}} here: // CHECK-Linux-NEXT: #0 0x{{.*}} in operator new[] // CHECK-Darwin: previously allocated by thread T{{.*}} here: // CHECK-Darwin-NEXT: #0 0x{{.*}} in wrap__Znam + // CHECK-Windows: previously allocated by thread T{{.*}} here: + // CHECK-Windows-NEXT: #0 0x{{.*}} in operator new[] // CHECK-NOT: #1 0x{{.*}} // CHECK: SUMMARY: AddressSanitizer: heap-use-after-free diff --git a/compiler-rt/test/asan/TestCases/malloc_hook.cc b/compiler-rt/test/asan/TestCases/malloc_hook.cc index c535ef85694..41ba64516f2 100644 --- a/compiler-rt/test/asan/TestCases/malloc_hook.cc +++ b/compiler-rt/test/asan/TestCases/malloc_hook.cc @@ -1,5 +1,9 @@ // RUN: %clangxx_asan -O2 %s -o %t // RUN: %run %t 2>&1 | FileCheck %s + +// Malloc/free hooks are not supported on Windows. +// XFAIL: win32 + #include <stdlib.h> #include <unistd.h> diff --git a/compiler-rt/test/asan/TestCases/on_error_callback.cc b/compiler-rt/test/asan/TestCases/on_error_callback.cc index 0ad83d549af..c378c8b2de1 100644 --- a/compiler-rt/test/asan/TestCases/on_error_callback.cc +++ b/compiler-rt/test/asan/TestCases/on_error_callback.cc @@ -1,5 +1,8 @@ // RUN: %clangxx_asan -O2 %s -o %t && not %run %t 2>&1 | FileCheck %s +// FIXME: __asan_on_error() is not supported on Windows yet. +// XFAIL: win32 + #include <stdio.h> #include <stdlib.h> diff --git a/compiler-rt/test/asan/TestCases/printf-1.c b/compiler-rt/test/asan/TestCases/printf-1.c index dee00a5c96b..5657083c586 100644 --- a/compiler-rt/test/asan/TestCases/printf-1.c +++ b/compiler-rt/test/asan/TestCases/printf-1.c @@ -4,6 +4,10 @@ // RUN: %run %t 2>&1 | FileCheck %s #include <stdio.h> +#if defined(_WIN32) +# define snprintf _snprintf +#endif + int main() { volatile char c = '0'; volatile int x = 12; diff --git a/compiler-rt/test/asan/TestCases/printf-2.c b/compiler-rt/test/asan/TestCases/printf-2.c index f12c0b7a31e..e9cb47e24c1 100644 --- a/compiler-rt/test/asan/TestCases/printf-2.c +++ b/compiler-rt/test/asan/TestCases/printf-2.c @@ -5,6 +5,9 @@ // RUN: env ASAN_OPTIONS=replace_str=0:replace_intrin=0:check_printf=0 %run %t 2>&1 | FileCheck --check-prefix=CHECK-OFF %s // RUN: env ASAN_OPTIONS=replace_str=0:replace_intrin=0 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s +// FIXME: printf is not intercepted on Windows yet. +// XFAIL: win32 + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/compiler-rt/test/asan/TestCases/printf-3.c b/compiler-rt/test/asan/TestCases/printf-3.c index 387f6d54e2a..d16833d83c6 100644 --- a/compiler-rt/test/asan/TestCases/printf-3.c +++ b/compiler-rt/test/asan/TestCases/printf-3.c @@ -3,6 +3,9 @@ // RUN: env ASAN_OPTIONS=check_printf=0 %run %t 2>&1 | FileCheck --check-prefix=CHECK-OFF %s // RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s +// FIXME: printf is not intercepted on Windows yet. +// XFAIL: win32 + #include <stdio.h> int main() { volatile char c = '0'; diff --git a/compiler-rt/test/asan/TestCases/printf-4.c b/compiler-rt/test/asan/TestCases/printf-4.c index b219d6f8bc9..e269211d487 100644 --- a/compiler-rt/test/asan/TestCases/printf-4.c +++ b/compiler-rt/test/asan/TestCases/printf-4.c @@ -4,6 +4,9 @@ // RUN: env ASAN_OPTIONS=replace_str=0:replace_intrin=0:check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s // RUN: env ASAN_OPTIONS=replace_str=0:replace_intrin=0 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s +// FIXME: printf is not intercepted on Windows yet. +// XFAIL: win32 + #include <stdio.h> int main() { volatile char c = '0'; diff --git a/compiler-rt/test/asan/TestCases/printf-5.c b/compiler-rt/test/asan/TestCases/printf-5.c index 5bb43cbbbe0..ac2c1c4b299 100644 --- a/compiler-rt/test/asan/TestCases/printf-5.c +++ b/compiler-rt/test/asan/TestCases/printf-5.c @@ -4,6 +4,9 @@ // RUN: env ASAN_OPTIONS=replace_intrin=0:check_printf=0 %run %t 2>&1 | FileCheck --check-prefix=CHECK-OFF %s // RUN: env ASAN_OPTIONS=replace_intrin=0 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s +// FIXME: printf is not intercepted on Windows yet. +// XFAIL: win32 + #include <stdio.h> #include <string.h> int main() { diff --git a/compiler-rt/test/asan/TestCases/strdup_oob_test.cc b/compiler-rt/test/asan/TestCases/strdup_oob_test.cc index 7716ee514cc..a039568b224 100644 --- a/compiler-rt/test/asan/TestCases/strdup_oob_test.cc +++ b/compiler-rt/test/asan/TestCases/strdup_oob_test.cc @@ -12,8 +12,9 @@ int main(int argc, char **argv) { int x = copy[4 + argc]; // BOOM // CHECK: AddressSanitizer: heap-buffer-overflow // CHECK: #0 {{.*}}main {{.*}}strdup_oob_test.cc:[[@LINE-2]] - // CHECK: allocated by thread T{{.*}} here: - // CHECK: #0 {{.*}}strdup + // CHECK-LABEL: allocated by thread T{{.*}} here: + // CHECK: #{{[01]}} {{.*}}strdup + // CHECK-LABEL: SUMMARY // CHECK: strdup_oob_test.cc:[[@LINE-6]] return x; } diff --git a/compiler-rt/test/asan/TestCases/throw_call_test.cc b/compiler-rt/test/asan/TestCases/throw_call_test.cc index dff112fca23..20e9a5ee565 100644 --- a/compiler-rt/test/asan/TestCases/throw_call_test.cc +++ b/compiler-rt/test/asan/TestCases/throw_call_test.cc @@ -5,6 +5,9 @@ // Android builds with static libstdc++ by default. // XFAIL: android +// Clang doesn't support exceptions on Windows yet. +// XFAIL: win32 + #include <stdio.h> static volatile int zero = 0; inline void pretend_to_do_something(void *x) { diff --git a/compiler-rt/test/asan/TestCases/throw_catch.cc b/compiler-rt/test/asan/TestCases/throw_catch.cc index bb41946ce39..f35378d7523 100644 --- a/compiler-rt/test/asan/TestCases/throw_catch.cc +++ b/compiler-rt/test/asan/TestCases/throw_catch.cc @@ -1,5 +1,8 @@ // RUN: %clangxx_asan -O %s -o %t && %run %t +// Clang doesn't support exceptions on Windows yet. +// XFAIL: win32 + #include <assert.h> #include <setjmp.h> #include <stdlib.h> diff --git a/compiler-rt/test/asan/TestCases/throw_invoke_test.cc b/compiler-rt/test/asan/TestCases/throw_invoke_test.cc index 2fc557d6842..ec48fc7b6a4 100644 --- a/compiler-rt/test/asan/TestCases/throw_invoke_test.cc +++ b/compiler-rt/test/asan/TestCases/throw_invoke_test.cc @@ -1,5 +1,9 @@ // RUN: %clangxx_asan %s -o %t && %run %t // RUN: %clangxx_asan %s -o %t -static-libstdc++ && %run %t + +// Clang doesn't support exceptions on Windows yet. +// XFAIL: win32 + #include <stdio.h> static volatile int zero = 0; inline void pretend_to_do_something(void *x) { diff --git a/compiler-rt/test/asan/TestCases/time_interceptor.cc b/compiler-rt/test/asan/TestCases/time_interceptor.cc index 4fbd43321ff..147ce88e1bc 100644 --- a/compiler-rt/test/asan/TestCases/time_interceptor.cc +++ b/compiler-rt/test/asan/TestCases/time_interceptor.cc @@ -2,6 +2,9 @@ // Test the time() interceptor. +// There's no interceptor for time() on Windows yet. +// XFAIL: win32 + #include <stdio.h> #include <stdlib.h> #include <time.h> diff --git a/compiler-rt/test/asan/TestCases/uar_and_exceptions.cc b/compiler-rt/test/asan/TestCases/uar_and_exceptions.cc index 2e0c864b678..0bfe2972955 100644 --- a/compiler-rt/test/asan/TestCases/uar_and_exceptions.cc +++ b/compiler-rt/test/asan/TestCases/uar_and_exceptions.cc @@ -2,6 +2,9 @@ // export ASAN_OPTIONS=detect_stack_use_after_return=1 // RUN: %clangxx_asan -O0 %s -o %t && %run %t +// Clang doesn't support exceptions on Windows yet. +// XFAIL: win32 + #include <stdio.h> volatile char *g; |

