mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 15:06:09 +00:00

Summary: Read corpus files as binary to avoid automatic conversions Reviewers: Dor1s, morehouse Reviewed By: Dor1s, morehouse Differential Revision: https://reviews.llvm.org/D54180 llvm-svn: 346279
8 lines
268 B
Plaintext
8 lines
268 B
Plaintext
# Test that libFuzzer reads files properly.
|
|
|
|
# Account for the fact that echo will add a trailing newline.
|
|
RUN: echo -e "Hello\r\nWorld\r" > %t-testcase
|
|
RUN: %cpp_compiler %S/ReadBinaryTest.cpp -o %t-fuzzer
|
|
RUN: %run %t-fuzzer %t-testcase | FileCheck %s
|
|
CHECK: BINGO!
|