summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/startup.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-10-27 22:58:55 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-10-28 00:33:20 +0100
commit3660ee2c86d460bba3822dc9e117796b0ba59aa0 (patch)
treed359ac487aee61eb5e0cb3469913418190be9dae /crawl-ref/source/startup.cc
parent5ae78977690c8023545d5ae33d59543158e56fb5 (diff)
downloadcrawl-ref-3660ee2c86d460bba3822dc9e117796b0ba59aa0.tar.gz
crawl-ref-3660ee2c86d460bba3822dc9e117796b0ba59aa0.zip
Make -test NORETURN and easier to valgrind.
Diffstat (limited to 'crawl-ref/source/startup.cc')
-rw-r--r--crawl-ref/source/startup.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/crawl-ref/source/startup.cc b/crawl-ref/source/startup.cc
index 3a4aa65bae..a405a3749a 100644
--- a/crawl-ref/source/startup.cc
+++ b/crawl-ref/source/startup.cc
@@ -178,10 +178,8 @@ static void _initialize()
#endif
dgn_reset_level();
crawl_state.show_more_prompt = false;
- run_tests(true);
- // Superfluous, just to make it clear that this is the end of
- // the line.
- end(0, false);
+ run_tests();
+ // doesn't return
#else
end(1, false, "Non-debug Crawl cannot run tests. "
"Please use a debug build (defined FULLDEBUG, DEBUG_DIAGNOSTIC "