xref: /llvm-project/compiler-rt/test/fuzzer/read-binary.test (revision 39b6ba9f3311854672fab754b6263c5db0bb9166)
1# Test that libFuzzer reads files properly.
2
3# Account for the fact that echo will add a trailing newline.
4RUN: echo -e "Hello\r\nWorld\r" > %t-testcase
5RUN: %cpp_compiler %S/ReadBinaryTest.cpp -o %t-fuzzer
6RUN: %run %t-fuzzer %t-testcase | FileCheck %s
7CHECK: BINGO!
8