[llvm-branch-commits] [compiler-rt] 55d13e6 - [asan][test] Annotate glibc specific tests with REQUIRES: glibc-2.27

Fangrui Song via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Dec 28 20:00:44 PST 2020


Author: Fangrui Song
Date: 2020-12-28T19:56:08-08:00
New Revision: 55d13e6a867450d4a131612e4e93d60458016c8d

URL: https://github.com/llvm/llvm-project/commit/55d13e6a867450d4a131612e4e93d60458016c8d
DIFF: https://github.com/llvm/llvm-project/commit/55d13e6a867450d4a131612e4e93d60458016c8d.diff

LOG: [asan][test] Annotate glibc specific tests with REQUIRES: glibc-2.27

Added: 
    

Modified: 
    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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/asan/TestCases/Linux/printf-fortify-1.c b/compiler-rt/test/asan/TestCases/Linux/printf-fortify-1.c
index 2e0c70c1e648..daa2f3993b26 100644
--- a/compiler-rt/test/asan/TestCases/Linux/printf-fortify-1.c
+++ b/compiler-rt/test/asan/TestCases/Linux/printf-fortify-1.c
@@ -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>

diff  --git a/compiler-rt/test/asan/TestCases/Linux/printf-fortify-2.c b/compiler-rt/test/asan/TestCases/Linux/printf-fortify-2.c
index 6ea1e00e4a66..a105fdda730e 100644
--- a/compiler-rt/test/asan/TestCases/Linux/printf-fortify-2.c
+++ b/compiler-rt/test/asan/TestCases/Linux/printf-fortify-2.c
@@ -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>

diff  --git a/compiler-rt/test/asan/TestCases/Linux/printf-fortify-3.c b/compiler-rt/test/asan/TestCases/Linux/printf-fortify-3.c
index a4b49dc98167..dcc12dd3c055 100644
--- a/compiler-rt/test/asan/TestCases/Linux/printf-fortify-3.c
+++ b/compiler-rt/test/asan/TestCases/Linux/printf-fortify-3.c
@@ -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>

diff  --git a/compiler-rt/test/asan/TestCases/Linux/printf-fortify-4.c b/compiler-rt/test/asan/TestCases/Linux/printf-fortify-4.c
index 57ec42f3823a..db89ca2037f6 100644
--- a/compiler-rt/test/asan/TestCases/Linux/printf-fortify-4.c
+++ b/compiler-rt/test/asan/TestCases/Linux/printf-fortify-4.c
@@ -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>

diff  --git a/compiler-rt/test/asan/TestCases/Linux/printf-fortify-5.c b/compiler-rt/test/asan/TestCases/Linux/printf-fortify-5.c
index 487457a90de1..c7522e4029ea 100644
--- a/compiler-rt/test/asan/TestCases/Linux/printf-fortify-5.c
+++ b/compiler-rt/test/asan/TestCases/Linux/printf-fortify-5.c
@@ -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>

diff  --git a/compiler-rt/test/asan/TestCases/Linux/swapcontext_annotation.cpp b/compiler-rt/test/asan/TestCases/Linux/swapcontext_annotation.cpp
index 5eae27a32167..2e4179a6e706 100644
--- a/compiler-rt/test/asan/TestCases/Linux/swapcontext_annotation.cpp
+++ b/compiler-rt/test/asan/TestCases/Linux/swapcontext_annotation.cpp
@@ -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>

diff  --git a/compiler-rt/test/asan/TestCases/Linux/swapcontext_test.cpp b/compiler-rt/test/asan/TestCases/Linux/swapcontext_test.cpp
index 2660ffe3ba70..7478225899af 100644
--- a/compiler-rt/test/asan/TestCases/Linux/swapcontext_test.cpp
+++ b/compiler-rt/test/asan/TestCases/Linux/swapcontext_test.cpp
@@ -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>

diff  --git a/compiler-rt/test/asan/TestCases/malloc-no-intercept.c b/compiler-rt/test/asan/TestCases/malloc-no-intercept.c
index 198a496c4ad1..3aa25e7b74bc 100644
--- a/compiler-rt/test/asan/TestCases/malloc-no-intercept.c
+++ b/compiler-rt/test/asan/TestCases/malloc-no-intercept.c
@@ -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 
diff erent
 // signature in libc.
 // UNSUPPORTED: solaris


        


More information about the llvm-branch-commits mailing list