[compiler-rt] r182360 - [ASan] Mark some tests as working only on x86_64 and i386 arches

Alexey Samsonov samsonov at google.com
Tue May 21 02:01:13 PDT 2013


Author: samsonov
Date: Tue May 21 04:01:13 2013
New Revision: 182360

URL: http://llvm.org/viewvc/llvm-project?rev=182360&view=rev
Log:
[ASan] Mark some tests as working only on x86_64 and i386 arches

Modified:
    compiler-rt/trunk/lib/asan/lit_tests/Linux/asan_prelink_test.cc
    compiler-rt/trunk/lib/asan/lit_tests/Linux/interface_symbols_linux.c
    compiler-rt/trunk/lib/asan/lit_tests/Linux/malloc-in-qsort.cc
    compiler-rt/trunk/lib/asan/lit_tests/Linux/overflow-in-qsort.cc
    compiler-rt/trunk/lib/asan/lit_tests/Linux/time_null_regtest.cc
    compiler-rt/trunk/lib/asan/lit_tests/Linux/zero-base-shadow.cc

Modified: compiler-rt/trunk/lib/asan/lit_tests/Linux/asan_prelink_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/Linux/asan_prelink_test.cc?rev=182360&r1=182359&r2=182360&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/Linux/asan_prelink_test.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/Linux/asan_prelink_test.cc Tue May 21 04:01:13 2013
@@ -8,6 +8,8 @@
 // RUN: %clangxx_asan -m64 -DBUILD_SO=1 -fPIC -shared %s -o %t.so -Wl,-Ttext=0x3600000000
 // RUN: %clangxx_asan -m64 %t.o %t.so -Wl,-R. -o %t
 // RUN: ASAN_OPTIONS=verbosity=1 %t 2>&1 | FileCheck %s
+
+// REQUIRES: x86_64-supported-target
 #if BUILD_SO
 int G;
 int *getG() {

Modified: compiler-rt/trunk/lib/asan/lit_tests/Linux/interface_symbols_linux.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/Linux/interface_symbols_linux.c?rev=182360&r1=182359&r2=182360&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/Linux/interface_symbols_linux.c (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/Linux/interface_symbols_linux.c Tue May 21 04:01:13 2013
@@ -27,4 +27,8 @@
 // RUN: echo __asan_report_store_n >> %t.interface
 // RUN: cat %t.interface | sort -u | diff %t.symbols -
 
+// FIXME: nm -D on powerpc somewhy shows ASan interface symbols residing
+// in "initialized data section".
+// XFAIL: powerpc-supported-arch
+
 int main() { return 0; }

Modified: compiler-rt/trunk/lib/asan/lit_tests/Linux/malloc-in-qsort.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/Linux/malloc-in-qsort.cc?rev=182360&r1=182359&r2=182360&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/Linux/malloc-in-qsort.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/Linux/malloc-in-qsort.cc Tue May 21 04:01:13 2013
@@ -1,10 +1,17 @@
-// RUN: %clangxx_asan -O2 %s -o %t
+// RUN: %clangxx_asan -m32 -O2 %s -o %t
+// RUN: ASAN_OPTIONS=fast_unwind_on_malloc=1 %t 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK-FAST
+// RUN: ASAN_OPTIONS=fast_unwind_on_malloc=0 %t 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK-SLOW
+// RUN: %clangxx_asan -m64 -O2 %s -o %t
 // RUN: ASAN_OPTIONS=fast_unwind_on_malloc=1 %t 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK-FAST
 // RUN: ASAN_OPTIONS=fast_unwind_on_malloc=0 %t 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK-SLOW
 
 // Test how well we unwind in presence of qsort in the stack
 // (i.e. if we can unwind through a function compiled w/o frame pointers).
 // https://code.google.com/p/address-sanitizer/issues/detail?id=137
+
+// Fast unwinder is only avaliable on x86_64 and i386.
+// REQUIRES: x86_64-supported-target,i386-supported-target
+
 #include <stdlib.h>
 #include <stdio.h>
 

Modified: compiler-rt/trunk/lib/asan/lit_tests/Linux/overflow-in-qsort.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/Linux/overflow-in-qsort.cc?rev=182360&r1=182359&r2=182360&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/Linux/overflow-in-qsort.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/Linux/overflow-in-qsort.cc Tue May 21 04:01:13 2013
@@ -1,10 +1,17 @@
-// RUN: %clangxx_asan -O2 %s -o %t
+// RUN: %clangxx_asan -m32 -O2 %s -o %t
+// RUN: ASAN_OPTIONS=fast_unwind_on_fatal=1 %t 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK-FAST
+// RUN: ASAN_OPTIONS=fast_unwind_on_fatal=0 %t 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK-SLOW
+// RUN: %clangxx_asan -m64 -O2 %s -o %t
 // RUN: ASAN_OPTIONS=fast_unwind_on_fatal=1 %t 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK-FAST
 // RUN: ASAN_OPTIONS=fast_unwind_on_fatal=0 %t 2>&1 | %symbolize | FileCheck %s --check-prefix=CHECK-SLOW
 
 // Test how well we unwind in presence of qsort in the stack
 // (i.e. if we can unwind through a function compiled w/o frame pointers).
 // https://code.google.com/p/address-sanitizer/issues/detail?id=137
+
+// Fast unwinder is only avaliable on x86_64 and i386.
+// REQUIRES: x86_64-supported-target,i386-supported-target
+
 #include <stdlib.h>
 #include <stdio.h>
 

Modified: compiler-rt/trunk/lib/asan/lit_tests/Linux/time_null_regtest.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/Linux/time_null_regtest.cc?rev=182360&r1=182359&r2=182360&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/Linux/time_null_regtest.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/Linux/time_null_regtest.cc Tue May 21 04:01:13 2013
@@ -1,5 +1,8 @@
 // RUN: %clangxx_asan -m64 -O0 %s -fsanitize-address-zero-base-shadow -pie -o %t && %t 2>&1 | %symbolize | FileCheck %s
 
+// Zero-base shadow only works on x86_64 and i386.
+// REQUIRES: x86_64-supported-target
+
 // A regression test for time(NULL), which caused ASan to crash in the
 // zero-based shadow mode on Linux.
 // FIXME: this test does not work on Darwin, because the code pages of the

Modified: compiler-rt/trunk/lib/asan/lit_tests/Linux/zero-base-shadow.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/Linux/zero-base-shadow.cc?rev=182360&r1=182359&r2=182360&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/Linux/zero-base-shadow.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/Linux/zero-base-shadow.cc Tue May 21 04:01:13 2013
@@ -11,6 +11,9 @@
 // RUN: %clangxx_asan -m32 -O2 -fsanitize-address-zero-base-shadow -fPIE -pie %s -o %t && %t 2>&1 | %symbolize > %t.out
 // RUN: FileCheck %s < %t.out && FileCheck %s --check-prefix=CHECK-32 < %t.out
 
+// Zero-base shadow only works on x86_64 and i386.
+// REQUIRES: x86_64-supported-target,i386-supported-target
+
 #include <string.h>
 int main(int argc, char **argv) {
   char x[10];





More information about the llvm-commits mailing list