George Karpenkov | 10ab2ac | 2017-08-21 23:25:50 +0000 | [diff] [blame^] | 1 | RUN: %cpp_compiler %S/NullDerefTest.cpp -o %t-NullDerefTest |
| 2 | RUN: %cpp_compiler %S/SingleByteInputTest.cpp -o %t-SingleByteInputTest |
| 3 | |
| 4 | RUN: echo 'Hi!rv349f34t3gg' > not_minimal_crash |
| 5 | RUN: %t-NullDerefTest -minimize_crash=1 not_minimal_crash -max_total_time=2 2>&1 | FileCheck %s |
| 6 | CHECK: CRASH_MIN: failed to minimize beyond ./minimized-from-{{.*}} (3 bytes), exiting |
| 7 | RUN: %t-NullDerefTest -minimize_crash=1 not_minimal_crash -max_total_time=2 -exact_artifact_path=exact_minimized_path 2>&1 | FileCheck %s --check-prefix=CHECK_EXACT |
| 8 | CHECK_EXACT: CRASH_MIN: failed to minimize beyond exact_minimized_path (3 bytes), exiting |
| 9 | RUN: rm not_minimal_crash minimized-from-* exact_minimized_path |
| 10 | |
| 11 | RUN: echo -n 'abcd*xyz' > not_minimal_crash |
| 12 | RUN: %t-SingleByteInputTest -minimize_crash=1 not_minimal_crash -exact_artifact_path=exact_minimized_path 2>&1 | FileCheck %s --check-prefix=MIN1 |
| 13 | MIN1: Test unit written to exact_minimized_path |
| 14 | MIN1: Test unit written to exact_minimized_path |
| 15 | MIN1: INFO: The input is small enough, exiting |
| 16 | MIN1: CRASH_MIN: failed to minimize beyond exact_minimized_path (1 bytes), exiting |