[asan][test] Annotate glibc specific tests with REQUIRES: glibc-2.27
authorFangrui Song <i@maskray.me>
Tue, 29 Dec 2020 03:56:08 +0000 (19:56 -0800)
committerFangrui Song <i@maskray.me>
Tue, 29 Dec 2020 03:56:08 +0000 (19:56 -0800)
compiler-rt/test/asan/TestCases/Linux/printf-fortify-1.c
compiler-rt/test/asan/TestCases/Linux/printf-fortify-2.c
compiler-rt/test/asan/TestCases/Linux/printf-fortify-3.c
compiler-rt/test/asan/TestCases/Linux/printf-fortify-4.c
compiler-rt/test/asan/TestCases/Linux/printf-fortify-5.c
compiler-rt/test/asan/TestCases/Linux/swapcontext_annotation.cpp
compiler-rt/test/asan/TestCases/Linux/swapcontext_test.cpp
compiler-rt/test/asan/TestCases/malloc-no-intercept.c

index 2e0c70c..daa2f39 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang -fPIC -shared -O2 -D_FORTIFY_SOURCE=2 -D_DSO %s -o %t.so
 // RUN: %clang_asan -o %t %t.so %s
 // RUN: not %run %t 2>&1 | FileCheck %s
-// UNSUPPORTED: android
+// REQUIRES: glibc-2.27
 #ifdef _DSO
 #include <stdio.h>
 #include <stdlib.h>
index 6ea1e00..a105fdd 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang -fPIC -shared -O2 -D_FORTIFY_SOURCE=2 -D_DSO %s -o %t.so
 // RUN: %clang_asan %s -o %t %t.so
 // RUN: not %run %t 2>&1 | FileCheck %s
-// UNSUPPORTED: android
+// REQUIRES: glibc-2.27
 #ifdef _DSO
 #include <stdio.h>
 #include <stdlib.h>
index a4b49dc..dcc12dd 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang -shared -fPIC -D_DSO -O2 -D_FORTIFY_SOURCE=2 %s -o %t.so
 // RUN: %clang_asan %s -o %t %t.so
 // RUN: not %run %t 2>&1 | FileCheck %s
-// UNSUPPORTED: android
+// REQUIRES: glibc-2.27
 #ifdef _DSO
 #include <stdarg.h>
 #include <stdio.h>
index 57ec42f..db89ca2 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang -fPIC -shared -O2 -D_FORTIFY_SOURCE=2 -D_DSO %s -o %t.so
 // RUN: %clang_asan %s -o %t %t.so
 // RUN: not %run %t 2>&1 | FileCheck %s
-// UNSUPPORTED: android
+// REQUIRES: glibc-2.27
 #ifdef _DSO
 #include <stdarg.h>
 #include <stdio.h>
index 487457a..c7522e4 100644 (file)
@@ -1,7 +1,7 @@
 // RUN: %clang -fPIC -shared -O2 -D_FORTIFY_SOURCE=2 -D_DSO %s -o %t.so
 // RUN: %clang_asan -o %t %t.so %s
 // RUN: not %run %t 2>&1 | FileCheck %s
-// UNSUPPORTED: android
+// REQUIRES: glibc-2.27
 #ifdef _DSO
 #include <stdio.h>
 #include <stdlib.h>
index 5eae27a..2e4179a 100644 (file)
@@ -12,8 +12,8 @@
 
 //
 // This test is too subtle to try on non-x86 arch for now.
-// Android does not support swapcontext.
-// REQUIRES: x86-target-arch && !android
+// Android and musl do not support swapcontext.
+// REQUIRES: x86-target-arch && glibc-2.27
 
 #include <pthread.h>
 #include <setjmp.h>
index 2660ffe..7478225 100644 (file)
@@ -6,8 +6,8 @@
 // RUN: %clangxx_asan -O3 %s -o %t && %run %t 2>&1 | FileCheck %s
 //
 // This test is too sublte to try on non-x86 arch for now.
-// Android does not support swapcontext.
-// REQUIRES: x86-target-arch && !android
+// Android and musl do not support swapcontext.
+// REQUIRES: x86-target-arch && glibc-2.27
 
 #include <stdio.h>
 #include <ucontext.h>
index 198a496..3aa25e7 100644 (file)
@@ -7,8 +7,8 @@
 // RUN: not %clang_asan -Dtestfunc=pvalloc  %s -o %t
 // RUN: not %clang_asan -Dtestfunc=cfree    %s -o %t
 
+// REQUIRES: glibc-2.27
 // Conflicts with BIONIC declarations.
-// UNSUPPORTED: android
 // Lacks mallinfo, mallopt except in libmalloc.  cfree with different
 // signature in libc.
 // UNSUPPORTED: solaris