Skip to content

Commit

Permalink
[libFuzzer] Update test to consider different exceptions.
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D29531

llvm-svn: 294377
  • Loading branch information
Marcos Pividori committed Feb 8, 2017
1 parent c8cee28 commit 51f907f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion llvm/lib/Fuzzer/test/fuzzer.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ MaxTotalTime: Done {{.*}} runs in {{.}} second(s)

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-
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Fuzzer/test/value-profile-div.test
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 51f907f

Please sign in to comment.