diff --git a/src/rpn-test-core.h b/src/rpn-test-core.h index 846817e..a9ffbe5 100644 --- a/src/rpn-test-core.h +++ b/src/rpn-test-core.h @@ -24,7 +24,7 @@ void program::test() // redirect cerr cerr_old_buffer = cerr.rdbuf(cerr_buffer.rdbuf()); - while (!test_file.eof()) + while ((!failed) && (!test_file.eof())) { getline(test_file, entry); if (entry.substr(0,2)=="##")