diff options
Diffstat (limited to 'test/fuzzer/read-binary.test')
-rw-r--r-- | test/fuzzer/read-binary.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/fuzzer/read-binary.test b/test/fuzzer/read-binary.test new file mode 100644 index 000000000000..c80858e81134 --- /dev/null +++ b/test/fuzzer/read-binary.test @@ -0,0 +1,7 @@ +# 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! |