1RUN: %cpp_compiler %S/ReloadTest.cpp -o %t-ReloadTest
2RUN: not %run %t-ReloadTest -max_len=10000 -seed=1 -timeout=15 -len_control=0 -exact_artifact_path=%t.crash 2>&1 | FileCheck %s
3
4CHECK: Test unit written to {{.*}}reload.test.tmp.crash
5
6RUN: not %run %t-ReloadTest %t.crash 2>&1 | FileCheck %s --check-prefix=ARTIFACT
7
8ARTIFACT: Running: {{.*}}reload.test.tmp.crash
9ARTIFACT: ERROR: libFuzzer: deadly signal
10
11# Sanity check that altered artifact is not going to crash
12RUN: echo z >> %t.crash
13RUN: %run %t-ReloadTest %t.crash
14