[compiler-rt] 8a4878c - [libFuzzer] Disable noasan-memcmp64.test and bcmp.test on Windows.

Dokyung Song via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 24 09:44:49 PDT 2020


Author: Dokyung Song
Date: 2020-07-24T16:40:11Z
New Revision: 8a4878cc116c7ba2e1031d63e108610920c5ef5c

URL: https://github.com/llvm/llvm-project/commit/8a4878cc116c7ba2e1031d63e108610920c5ef5c
DIFF: https://github.com/llvm/llvm-project/commit/8a4878cc116c7ba2e1031d63e108610920c5ef5c.diff

LOG: [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

Added: 
    compiler-rt/test/fuzzer/noasan-memcmp64.test

Modified: 
    compiler-rt/test/fuzzer/bcmp.test
    compiler-rt/test/fuzzer/memcmp64.test

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/fuzzer/bcmp.test b/compiler-rt/test/fuzzer/bcmp.test
index 37ee6bedd4ee..5bbbe9845beb 100644
--- a/compiler-rt/test/fuzzer/bcmp.test
+++ b/compiler-rt/test/fuzzer/bcmp.test
@@ -1,4 +1,4 @@
-UNSUPPORTED: freebsd
+UNSUPPORTED: freebsd, windows
 RUN: %cpp_compiler -DMEMCMP=bcmp %S/MemcmpTest.cpp -o %t
 RUN: not %run %t -seed=1 -runs=10000000 2>&1 | FileCheck %s
 CHECK: BINGO

diff  --git a/compiler-rt/test/fuzzer/memcmp64.test b/compiler-rt/test/fuzzer/memcmp64.test
index feb81d1e4fb2..24d14bf73bbf 100644
--- a/compiler-rt/test/fuzzer/memcmp64.test
+++ b/compiler-rt/test/fuzzer/memcmp64.test
@@ -1,8 +1,4 @@
 UNSUPPORTED: freebsd
 RUN: %cpp_compiler %S/Memcmp64BytesTest.cpp -o %t-Memcmp64BytesTest
 RUN: not %run %t-Memcmp64BytesTest        -seed=1 -runs=1000000   2>&1 | FileCheck %s
-
-RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-memcmp %S/Memcmp64BytesTest.cpp -o %t-NoAsanMemcmp64BytesTest
-RUN: not %run %t-NoAsanMemcmp64BytesTest  -seed=1 -runs=1000000   2>&1 | FileCheck %s
-
 CHECK: BINGO

diff  --git a/compiler-rt/test/fuzzer/noasan-memcmp64.test b/compiler-rt/test/fuzzer/noasan-memcmp64.test
new file mode 100644
index 000000000000..a6b8f88594d0
--- /dev/null
+++ b/compiler-rt/test/fuzzer/noasan-memcmp64.test
@@ -0,0 +1,6 @@
+UNSUPPORTED: darwin, freebsd, windows
+
+RUN: %cpp_compiler -fno-sanitize=address -fno-builtin-memcmp %S/Memcmp64BytesTest.cpp -o %t-NoAsanMemcmp64BytesTest
+RUN: not %run %t-NoAsanMemcmp64BytesTest -seed=1 -runs=1000000   2>&1 | FileCheck %s
+
+CHECK: BINGO


        


More information about the llvm-commits mailing list