From 2167cd4b007fb4129b8ef2e1e39dd7996ac5e504 Mon Sep 17 00:00:00 2001 From: Louis RUBET Date: Fri, 5 Sep 2014 15:43:57 +0200 Subject: [PATCH] Exit after first error --- src/rpn-test-core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)=="##")