From 55d13e6a867450d4a131612e4e93d60458016c8d Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 28 Dec 2020 19:56:08 -0800 Subject: [PATCH] [asan][test] Annotate glibc specific tests with REQUIRES: glibc-2.27 --- compiler-rt/test/asan/TestCases/Linux/printf-fortify-1.c | 2 +- compiler-rt/test/asan/TestCases/Linux/printf-fortify-2.c | 2 +- compiler-rt/test/asan/TestCases/Linux/printf-fortify-3.c | 2 +- compiler-rt/test/asan/TestCases/Linux/printf-fortify-4.c | 2 +- compiler-rt/test/asan/TestCases/Linux/printf-fortify-5.c | 2 +- compiler-rt/test/asan/TestCases/Linux/swapcontext_annotation.cpp | 4 ++-- compiler-rt/test/asan/TestCases/Linux/swapcontext_test.cpp | 4 ++-- compiler-rt/test/asan/TestCases/malloc-no-intercept.c | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) 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 2e0c70c..daa2f39 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 #include 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 6ea1e00..a105fdd 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 #include 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 a4b49dc..dcc12dd 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 #include 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 57ec42f..db89ca2 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 #include 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 487457a..c7522e4 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 #include diff --git a/compiler-rt/test/asan/TestCases/Linux/swapcontext_annotation.cpp b/compiler-rt/test/asan/TestCases/Linux/swapcontext_annotation.cpp index 5eae27a..2e4179a 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 #include diff --git a/compiler-rt/test/asan/TestCases/Linux/swapcontext_test.cpp b/compiler-rt/test/asan/TestCases/Linux/swapcontext_test.cpp index 2660ffe..7478225 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 #include diff --git a/compiler-rt/test/asan/TestCases/malloc-no-intercept.c b/compiler-rt/test/asan/TestCases/malloc-no-intercept.c index 198a496..3aa25e7 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 different // signature in libc. // UNSUPPORTED: solaris -- 2.7.4