mirror of
https://github.com/louisrubet/rpn
synced 2025-01-17 06:12:09 +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
|
// redirect cerr
|
||||||
cerr_old_buffer = cerr.rdbuf(cerr_buffer.rdbuf());
|
cerr_old_buffer = cerr.rdbuf(cerr_buffer.rdbuf());
|
||||||
|
|
||||||
while (!test_file.eof())
|
while ((!failed) && (!test_file.eof()))
|
||||||
{
|
{
|
||||||
getline(test_file, entry);
|
getline(test_file, entry);
|
||||||
if (entry.substr(0,2)=="##")
|
if (entry.substr(0,2)=="##")
|
||||||
|
|
Loading…
Reference in a new issue