forked from OSchip/llvm-project
[libFuzzer] Disable interceptor tests on non-Linux platforms.
Summary: libFuzzer's interceptor support added in 831ae45e3d
currently only works on Linux. This patch disables the test cases added as part of that commit on non-Linux platforms.
Reviewers: morehouse, hctim
Subscribers: #sanitizers
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D84434
This commit is contained in:
parent
3285b24249
commit
769dab207e
|
@ -1,6 +1,5 @@
|
|||
UNSUPPORTED: freebsd
|
||||
UNSUPPORTED: darwin, freebsd, windows
|
||||
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin %S/CustomAllocator.cpp %S/EmptyTest.cpp -o %t-NoAsanCustomAllocatorTest
|
||||
|
||||
RUN: %run %t-NoAsanCustomAllocatorTest -runs=1 2>&1 | FileCheck %s
|
||||
|
||||
CHECK: CALLOC-MEMCMP
|
||||
|
|
|
@ -1,11 +1,4 @@
|
|||
UNSUPPORTED: freebsd
|
||||
RUN: %cpp_compiler %S/MemcmpTest.cpp -o %t-MemcmpTest
|
||||
RUN: not %run %t-MemcmpTest -seed=1 -runs=10000000 2>&1 | FileCheck %s
|
||||
|
||||
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-memcmp %S/MemcmpTest.cpp -o %t-NoAsanMemcmpTest
|
||||
RUN: not %run %t-NoAsanMemcmpTest -seed=1 -runs=10000000 2>&1 | FileCheck %s
|
||||
|
||||
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-calloc -fno-builtin-memcmp %S/CustomAllocator.cpp %S/MemcmpTest.cpp -o %t-NoAsanCustomAllocatorMemcmpTest
|
||||
RUN: not %run %t-NoAsanCustomAllocatorMemcmpTest -seed=1 -runs=10000000 2>&1 | FileCheck %s
|
||||
|
||||
CHECK: BINGO
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
UNSUPPORTED: darwin, freebsd, windows
|
||||
|
||||
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-memcmp %S/MemcmpTest.cpp -o %t-NoAsanMemcmpTest
|
||||
RUN: not %run %t-NoAsanMemcmpTest -seed=1 -runs=10000000 2>&1 | FileCheck %s
|
||||
|
||||
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-calloc -fno-builtin-memcmp %S/CustomAllocator.cpp %S/MemcmpTest.cpp -o %t-NoAsanCustomAllocatorMemcmpTest
|
||||
RUN: not %run %t-NoAsanCustomAllocatorMemcmpTest -seed=1 -runs=10000000 2>&1 | FileCheck %s
|
||||
|
||||
CHECK: BINGO
|
|
@ -0,0 +1,9 @@
|
|||
UNSUPPORTED: darwin, freebsd, windows
|
||||
|
||||
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-strcmp %S/StrcmpTest.cpp -o %t-NoAsanStrcmpTest
|
||||
RUN: not %run %t-NoAsanStrcmpTest -seed=1 -runs=2000000 2>&1 | FileCheck %s
|
||||
|
||||
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-calloc -fno-builtin-strcmp %S/CustomAllocator.cpp %S/StrcmpTest.cpp -o %t-NoAsanCustomAllocatorStrcmpTest
|
||||
RUN: not %run %t-NoAsanCustomAllocatorStrcmpTest -seed=1 -runs=2000000 2>&1 | FileCheck %s
|
||||
|
||||
CHECK: BINGO
|
|
@ -0,0 +1,9 @@
|
|||
UNSUPPORTED: darwin, freebsd, windows
|
||||
|
||||
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-strncmp %S/StrncmpTest.cpp -o %t-NoAsanStrncmpTest
|
||||
RUN: not %run %t-NoAsanStrncmpTest -seed=2 -runs=10000000 2>&1 | FileCheck %s
|
||||
|
||||
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-calloc -fno-builtin-strncmp %S/CustomAllocator.cpp %S/StrncmpTest.cpp -o %t-NoAsanCustomAllocatorStrncmpTest
|
||||
RUN: not %run %t-NoAsanCustomAllocatorStrncmpTest -seed=2 -runs=10000000 2>&1 | FileCheck %s
|
||||
|
||||
CHECK: BINGO
|
|
@ -0,0 +1,9 @@
|
|||
UNSUPPORTED: darwin, freebsd, windows
|
||||
|
||||
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-strstr %S/StrstrTest.cpp -o %t-NoAsanStrstrTest
|
||||
RUN: not %run %t-NoAsanStrstrTest -seed=1 -runs=2000000 2>&1 | FileCheck %s
|
||||
|
||||
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-calloc -fno-builtin-strstr %S/CustomAllocator.cpp %S/StrstrTest.cpp -o %t-NoAsanCustomAllocatorStrstrTest
|
||||
RUN: not %run %t-NoAsanCustomAllocatorStrstrTest -seed=1 -runs=2000000 2>&1 | FileCheck %s
|
||||
|
||||
CHECK: BINGO
|
|
@ -1,11 +1,4 @@
|
|||
UNSUPPORTED: freebsd
|
||||
RUN: %cpp_compiler %S/StrcmpTest.cpp -o %t-StrcmpTest
|
||||
RUN: not %run %t-StrcmpTest -seed=1 -runs=2000000 2>&1 | FileCheck %s
|
||||
|
||||
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-strcmp %S/StrcmpTest.cpp -o %t-NoAsanStrcmpTest
|
||||
RUN: not %run %t-NoAsanStrcmpTest -seed=1 -runs=2000000 2>&1 | FileCheck %s
|
||||
|
||||
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-calloc -fno-builtin-strcmp %S/CustomAllocator.cpp %S/StrcmpTest.cpp -o %t-NoAsanCustomAllocatorStrcmpTest
|
||||
RUN: not %run %t-NoAsanCustomAllocatorStrcmpTest -seed=1 -runs=2000000 2>&1 | FileCheck %s
|
||||
|
||||
CHECK: BINGO
|
||||
|
|
|
@ -1,11 +1,4 @@
|
|||
UNSUPPORTED: freebsd
|
||||
RUN: %cpp_compiler %S/StrncmpTest.cpp -o %t-StrncmpTest
|
||||
RUN: not %run %t-StrncmpTest -seed=2 -runs=10000000 2>&1 | FileCheck %s
|
||||
|
||||
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-strncmp %S/StrncmpTest.cpp -o %t-NoAsanStrncmpTest
|
||||
RUN: not %run %t-NoAsanStrncmpTest -seed=2 -runs=10000000 2>&1 | FileCheck %s
|
||||
|
||||
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-calloc -fno-builtin-strncmp %S/CustomAllocator.cpp %S/StrncmpTest.cpp -o %t-NoAsanCustomAllocatorStrncmpTest
|
||||
RUN: not %run %t-NoAsanCustomAllocatorStrncmpTest -seed=2 -runs=10000000 2>&1 | FileCheck %s
|
||||
|
||||
CHECK: BINGO
|
||||
|
|
|
@ -1,11 +1,4 @@
|
|||
UNSUPPORTED: freebsd
|
||||
RUN: %cpp_compiler %S/StrstrTest.cpp -o %t-StrstrTest
|
||||
RUN: not %run %t-StrstrTest -seed=1 -runs=2000000 2>&1 | FileCheck %s
|
||||
|
||||
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-strstr %S/StrstrTest.cpp -o %t-NoAsanStrstrTest
|
||||
RUN: not %run %t-NoAsanStrstrTest -seed=1 -runs=2000000 2>&1 | FileCheck %s
|
||||
|
||||
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-calloc -fno-builtin-strstr %S/CustomAllocator.cpp %S/StrstrTest.cpp -o %t-NoAsanCustomAllocatorStrstrTest
|
||||
RUN: not %run %t-NoAsanCustomAllocatorStrstrTest -seed=1 -runs=2000000 2>&1 | FileCheck %s
|
||||
|
||||
CHECK: BINGO
|
||||
|
|
Loading…
Reference in New Issue