[PATCH] D29531: [libFuzzer] Consider exception names on tests.
Marcos Pividori via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 3 22:18:10 PST 2017
mpividori created this revision.
https://reviews.llvm.org/D29531
Files:
lib/Fuzzer/test/fuzzer.test
lib/Fuzzer/test/value-profile-div.test
lib/Fuzzer/test/value-profile-load.test
Index: lib/Fuzzer/test/value-profile-load.test
===================================================================
--- lib/Fuzzer/test/value-profile-load.test
+++ lib/Fuzzer/test/value-profile-load.test
@@ -1,3 +1,3 @@
-CHECK: AddressSanitizer: global-buffer-overflow
+CHECK: AddressSanitizer: {{stack|global}}-buffer-overflow
RUN: not LLVMFuzzer-LoadTest -seed=1 -use_cmp=0 -use_value_profile=1 -runs=10000000 2>&1 | FileCheck %s
Index: lib/Fuzzer/test/value-profile-div.test
===================================================================
--- lib/Fuzzer/test/value-profile-div.test
+++ lib/Fuzzer/test/value-profile-div.test
@@ -1,3 +1,3 @@
-CHECK: AddressSanitizer: FPE
+CHECK: AddressSanitizer: {{FPE|int-divide-by-zero}}
RUN: not LLVMFuzzer-DivTest -seed=1 -use_value_profile=1 -runs=10000000 2>&1 | FileCheck %s
Index: lib/Fuzzer/test/fuzzer.test
===================================================================
--- lib/Fuzzer/test/fuzzer.test
+++ lib/Fuzzer/test/fuzzer.test
@@ -11,7 +11,7 @@
RUN: not LLVMFuzzer-NullDerefTest 2>&1 | FileCheck %s --check-prefix=NullDerefTest
RUN: not LLVMFuzzer-NullDerefTest -close_fd_mask=3 2>&1 | FileCheck %s --check-prefix=NullDerefTest
-NullDerefTest: ERROR: AddressSanitizer: SEGV on unknown address
+NullDerefTest: ERROR: AddressSanitizer: {{SEGV|access-violation}} on unknown address
NullDerefTest: Test unit written to ./crash-
RUN: not LLVMFuzzer-NullDerefTest -artifact_prefix=ZZZ 2>&1 | FileCheck %s --check-prefix=NullDerefTestPrefix
NullDerefTestPrefix: Test unit written to ZZZcrash-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29531.87073.patch
Type: text/x-patch
Size: 1579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170204/0ccd9dd4/attachment.bin>
More information about the llvm-commits
mailing list