[compiler-rt] r209733 - [ASan tests] Exclude some tests from Windows runs
Timur Iskhodzhanov
timurrrr at google.com
Wed May 28 06:06:15 PDT 2014
Author: timurrrr
Date: Wed May 28 08:06:14 2014
New Revision: 209733
URL: http://llvm.org/viewvc/llvm-project?rev=209733&view=rev
Log:
[ASan tests] Exclude some tests from Windows runs
Some features are not supported yet and some are not planned to be fixed soon
Modified:
compiler-rt/trunk/test/asan/TestCases/default_options.cc
compiler-rt/trunk/test/asan/TestCases/free_hook_realloc.cc
compiler-rt/trunk/test/asan/TestCases/log-path_test.cc
compiler-rt/trunk/test/asan/TestCases/malloc_context_size.cc
compiler-rt/trunk/test/asan/TestCases/malloc_hook.cc
compiler-rt/trunk/test/asan/TestCases/on_error_callback.cc
compiler-rt/trunk/test/asan/TestCases/printf-1.c
compiler-rt/trunk/test/asan/TestCases/printf-2.c
compiler-rt/trunk/test/asan/TestCases/printf-3.c
compiler-rt/trunk/test/asan/TestCases/printf-4.c
compiler-rt/trunk/test/asan/TestCases/printf-5.c
compiler-rt/trunk/test/asan/TestCases/strdup_oob_test.cc
compiler-rt/trunk/test/asan/TestCases/throw_call_test.cc
compiler-rt/trunk/test/asan/TestCases/throw_catch.cc
compiler-rt/trunk/test/asan/TestCases/throw_invoke_test.cc
compiler-rt/trunk/test/asan/TestCases/time_interceptor.cc
compiler-rt/trunk/test/asan/TestCases/uar_and_exceptions.cc
Modified: compiler-rt/trunk/test/asan/TestCases/default_options.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/default_options.cc?rev=209733&r1=209732&r2=209733&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/default_options.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/default_options.cc Wed May 28 08:06:14 2014
@@ -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"
Modified: compiler-rt/trunk/test/asan/TestCases/free_hook_realloc.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/free_hook_realloc.cc?rev=209733&r1=209732&r2=209733&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/free_hook_realloc.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/free_hook_realloc.cc Wed May 28 08:06:14 2014
@@ -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>
Modified: compiler-rt/trunk/test/asan/TestCases/log-path_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/log-path_test.cc?rev=209733&r1=209732&r2=209733&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/log-path_test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/log-path_test.cc Wed May 28 08:06:14 2014
@@ -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>
Modified: compiler-rt/trunk/test/asan/TestCases/malloc_context_size.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/malloc_context_size.cc?rev=209733&r1=209732&r2=209733&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/malloc_context_size.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/malloc_context_size.cc Wed May 28 08:06:14 2014
@@ -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
Modified: compiler-rt/trunk/test/asan/TestCases/malloc_hook.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/malloc_hook.cc?rev=209733&r1=209732&r2=209733&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/malloc_hook.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/malloc_hook.cc Wed May 28 08:06:14 2014
@@ -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>
Modified: compiler-rt/trunk/test/asan/TestCases/on_error_callback.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/on_error_callback.cc?rev=209733&r1=209732&r2=209733&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/on_error_callback.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/on_error_callback.cc Wed May 28 08:06:14 2014
@@ -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>
Modified: compiler-rt/trunk/test/asan/TestCases/printf-1.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/printf-1.c?rev=209733&r1=209732&r2=209733&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/printf-1.c (original)
+++ compiler-rt/trunk/test/asan/TestCases/printf-1.c Wed May 28 08:06:14 2014
@@ -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;
Modified: compiler-rt/trunk/test/asan/TestCases/printf-2.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/printf-2.c?rev=209733&r1=209732&r2=209733&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/printf-2.c (original)
+++ compiler-rt/trunk/test/asan/TestCases/printf-2.c Wed May 28 08:06:14 2014
@@ -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>
Modified: compiler-rt/trunk/test/asan/TestCases/printf-3.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/printf-3.c?rev=209733&r1=209732&r2=209733&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/printf-3.c (original)
+++ compiler-rt/trunk/test/asan/TestCases/printf-3.c Wed May 28 08:06:14 2014
@@ -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';
Modified: compiler-rt/trunk/test/asan/TestCases/printf-4.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/printf-4.c?rev=209733&r1=209732&r2=209733&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/printf-4.c (original)
+++ compiler-rt/trunk/test/asan/TestCases/printf-4.c Wed May 28 08:06:14 2014
@@ -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';
Modified: compiler-rt/trunk/test/asan/TestCases/printf-5.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/printf-5.c?rev=209733&r1=209732&r2=209733&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/printf-5.c (original)
+++ compiler-rt/trunk/test/asan/TestCases/printf-5.c Wed May 28 08:06:14 2014
@@ -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() {
Modified: compiler-rt/trunk/test/asan/TestCases/strdup_oob_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/strdup_oob_test.cc?rev=209733&r1=209732&r2=209733&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/strdup_oob_test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/strdup_oob_test.cc Wed May 28 08:06:14 2014
@@ -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;
}
Modified: compiler-rt/trunk/test/asan/TestCases/throw_call_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/throw_call_test.cc?rev=209733&r1=209732&r2=209733&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/throw_call_test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/throw_call_test.cc Wed May 28 08:06:14 2014
@@ -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) {
Modified: compiler-rt/trunk/test/asan/TestCases/throw_catch.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/throw_catch.cc?rev=209733&r1=209732&r2=209733&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/throw_catch.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/throw_catch.cc Wed May 28 08:06:14 2014
@@ -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>
Modified: compiler-rt/trunk/test/asan/TestCases/throw_invoke_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/throw_invoke_test.cc?rev=209733&r1=209732&r2=209733&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/throw_invoke_test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/throw_invoke_test.cc Wed May 28 08:06:14 2014
@@ -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) {
Modified: compiler-rt/trunk/test/asan/TestCases/time_interceptor.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/time_interceptor.cc?rev=209733&r1=209732&r2=209733&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/time_interceptor.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/time_interceptor.cc Wed May 28 08:06:14 2014
@@ -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>
Modified: compiler-rt/trunk/test/asan/TestCases/uar_and_exceptions.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/uar_and_exceptions.cc?rev=209733&r1=209732&r2=209733&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/uar_and_exceptions.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/uar_and_exceptions.cc Wed May 28 08:06:14 2014
@@ -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;
More information about the llvm-commits
mailing list