mirror of
https://github.com/louisrubet/rpn
synced 2024-12-29 10:23:59 +01:00
Exit after first error
This commit is contained in:
parent
8d88f2970f
commit
2167cd4b00
1 changed files with 1 additions and 1 deletions
|
@ -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)=="##")
|
||||
|
|
Loading…
Reference in a new issue