xref: /llvm-project/compiler-rt/test/fuzzer/reject.test (revision 92fb310151d2b1e349695fc0f1c5d5d50afb3b52)
1# Runs the Reject.cpp test,
2# ensures that the input 'acc' is present in the corpus,
3# and the input 'rej' is not.
4
5RUN: rm -rf %t-corpus && mkdir %t-corpus
6RUN: %cpp_compiler %S/Reject.cpp -o %t-Reject
7RUN: %run %t-Reject -runs=1000000 %t-corpus
8RUN: grep 'acc' %t-corpus/*
9RUN: not grep 'rej' %t-corpus/*
10