mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 10:22:03 +00:00
Fail WML unit test if the replay produces a warning or an error
This commit is contained in:
parent
bf561e68f3
commit
3984ae5b5e
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user