Skip to content

Commit 8a4878c

Browse files
committed
[libFuzzer] Disable noasan-memcmp64.test and bcmp.test on Windows.
Summary: This patch disables (i) noasan-memcmp64.test on Windows as libFuzzer's interceptors are only supported on Linux for now, and (ii) bcmp.test as on Windows bcmp is not available in strings.h. Reviewers: morehouse, hctim, kcc Subscribers: #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D84536
1 parent 1c7c69c commit 8a4878c

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

compiler-rt/test/fuzzer/bcmp.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
UNSUPPORTED: freebsd
1+
UNSUPPORTED: freebsd, windows
22
RUN: %cpp_compiler -DMEMCMP=bcmp %S/MemcmpTest.cpp -o %t
33
RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s
44
CHECK: BINGO

compiler-rt/test/fuzzer/memcmp64.test

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
UNSUPPORTED: freebsd
22
RUN: %cpp_compiler %S/Memcmp64BytesTest.cpp -o %t-Memcmp64BytesTest
33
RUN: not %run %t-Memcmp64BytesTest -seed=1 -runs=1000000 2>&1 | FileCheck %s
4-
5-
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-memcmp %S/Memcmp64BytesTest.cpp -o %t-NoAsanMemcmp64BytesTest
6-
RUN: not %run %t-NoAsanMemcmp64BytesTest -seed=1 -runs=1000000 2>&1 | FileCheck %s
7-
84
CHECK: BINGO
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
UNSUPPORTED: darwin, freebsd, windows
2+
3+
RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-memcmp %S/Memcmp64BytesTest.cpp -o %t-NoAsanMemcmp64BytesTest
4+
RUN: not %run %t-NoAsanMemcmp64BytesTest -seed=1 -runs=1000000 2>&1 | FileCheck %s
5+
6+
CHECK: BINGO

0 commit comments

Comments
 (0)