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

