diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-14 15:19:43 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-14 15:19:43 -0700 |
commit | 3b168e0076e632e873cf423d5296f47d45a2b341 (patch) | |
tree | 5daca0ab7dbf5bbe5114b88cc6e51a22a70fb17e | |
parent | 5d6d9110314f68ad8d43bfab1e2b50886c1cde9f (diff) | |
download | mu-3b168e0076e632e873cf423d5296f47d45a2b341.tar.gz |
1373
-rw-r--r-- | 072scenario_screen.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/072scenario_screen.cc b/072scenario_screen.cc index 06566b7d..d7e98f2f 100644 --- a/072scenario_screen.cc +++ b/072scenario_screen.cc @@ -125,7 +125,10 @@ void check_screen(const string& contents) { raise << "\nF - " << Current_scenario->name << ": expected screen location (" << i/screen_width << ", " << i%screen_width << ") to contain '" << expected_contents.at(i) << "' instead of '" << static_cast<char>(Memory[screen_data_start+i]) << "'\n"; else raise << "expected screen location (" << i/screen_width << ", " << i%screen_width << ") to contain '" << expected_contents.at(i) << "' instead of '" << static_cast<char>(Memory[screen_data_start+i]) << "'\n"; - Passed = false; + if (!Hide_warnings) { + Passed = false; + ++Num_failures; + } return; } } |