don't crash on abandons

This commit is contained in:
Alex Groce
2018-07-26 11:29:02 -07:00
parent 090f1f60af
commit 45abf8ea24
+2 -2
View File
@@ -623,7 +623,7 @@ static int DeepState_RunSingleSavedTestCase(void) {
enum DeepState_TestRunResult result =
DeepState_RunSavedTestCase(test, "", FLAGS_input_test_file);
if (result != DeepState_TestRunPass) {
if ((result == DeepState_TestRunFail) || (result == DeepState_TestRunCrash)) {
if (FLAGS_abort_on_fail) {
abort();
}
@@ -685,7 +685,7 @@ static int DeepState_RunSingleSavedTestDir(void) {
enum DeepState_TestRunResult result =
DeepState_RunSavedTestCase(test, FLAGS_input_test_files_dir, dp->d_name);
if (result != DeepState_TestRunPass) {
if ((result == DeepState_TestRunFail) || (result == DeepState_TestRunCrash)) {
if (FLAGS_abort_on_fail) {
abort();
}