Skip to content

Commit

Permalink
Fail WML unit test if the replay produces a warning or an error
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkive committed Feb 21, 2018
1 parent bf561e6 commit 3984ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game_launcher.cpp
Expand Up @@ -549,7 +549,7 @@ int game_launcher::unit_test()
try {
campaign_controller ccontroller(state_, game_config_manager::get()->game_config(), game_config_manager::get()->terrain_types(), true);
LEVEL_RESULT res = ccontroller.play_replay();
if (!(res == LEVEL_RESULT::VICTORY)) {
if (!(res == LEVEL_RESULT::VICTORY) || lg::broke_strict()) {
std::cerr << "Observed failure on replay" << std::endl;
return 4;
}
Expand Down

0 comments on commit 3984ae5

Please sign in to comment.