Exit after first error

This commit is contained in:
Louis RUBET 2014-09-05 15:43:57 +02:00
parent 8d88f2970f
commit 2167cd4b00

View file

@ -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)=="##")