From 851519cd078142877f9ef716b5eda8b77c4e6131 Mon Sep 17 00:00:00 2001 From: Chris Beck Date: Fri, 9 May 2014 23:04:03 -0400 Subject: [PATCH] enable linger mode to unit test macros ASSERT, RETURN I initially had linger mode off in the endlevel tags of these macros, to make sure they didn't block the end of noninteractive scenarios. But it turns out its better to have it on. It doesn't block the tests when they run noninteractively, and it means that if a test fails, you can boot it up with --showgui, and then run :inspect from linger mode to see what happened. If you don't have linger mode, then even with --showgui the failed test closes out too quickly. --- data/test/macros/wml_unit_test_macros.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/test/macros/wml_unit_test_macros.cfg b/data/test/macros/wml_unit_test_macros.cfg index 71f5277a34c..b7139f3af27 100644 --- a/data/test/macros/wml_unit_test_macros.cfg +++ b/data/test/macros/wml_unit_test_macros.cfg @@ -5,13 +5,13 @@ [then] [endlevel] result=victory - linger_mode = no + linger_mode = yes [/endlevel] [/then] [else] [endlevel] result=defeat - linger_mode = no + linger_mode = yes [/endlevel] [/else] [/if] @@ -23,7 +23,7 @@ [else] [endlevel] result=defeat - linger_mode = no + linger_mode = yes [/endlevel] [/else] [/if]