aboutsummaryrefslogtreecommitdiff
path: root/src/unittest/test.cpp
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-10-26 04:13:27 +0100
committerest31 <MTest31@outlook.com>2015-10-26 04:45:00 +0100
commit5f342aa0154e59503fbb22e46ac95ef655aaad1a (patch)
treeb476f7a5e4d7b4f09ecd514af2c82484e5f8c132 /src/unittest/test.cpp
parentd69ef6acd386ccfd5ff456002591b97b92a26956 (diff)
downloadminetest-5f342aa0154e59503fbb22e46ac95ef655aaad1a.tar.gz
minetest-5f342aa0154e59503fbb22e46ac95ef655aaad1a.tar.bz2
minetest-5f342aa0154e59503fbb22e46ac95ef655aaad1a.zip
Remove some abort() calls
abort() doesn't benefit from the high level abstractions from FATAL_ERROR.
Diffstat (limited to 'src/unittest/test.cpp')
-rw-r--r--src/unittest/test.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/unittest/test.cpp b/src/unittest/test.cpp
index 1f3b31017..41ccf0d2d 100644
--- a/src/unittest/test.cpp
+++ b/src/unittest/test.cpp
@@ -215,7 +215,7 @@ void TestGameDef::defineSomeNodes()
//// run_tests
////
-void run_tests()
+bool run_tests()
{
DSTACK(FUNCTION_NAME);
@@ -253,8 +253,7 @@ void run_tests()
<< "++++++++++++++++++++++++++++++++++++++++"
<< "++++++++++++++++++++++++++++++++++++++++" << std::endl;
- if (num_modules_failed)
- abort();
+ return num_modules_failed;
}
////