summaryrefslogtreecommitdiff
path: root/src/unittest
diff options
context:
space:
mode:
Diffstat (limited to 'src/unittest')
-rw-r--r--src/unittest/test.cpp5
-rw-r--r--src/unittest/test.h2
2 files changed, 3 insertions, 4 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;
}
////
diff --git a/src/unittest/test.h b/src/unittest/test.h
index f6c4711a5..e60e657cc 100644
--- a/src/unittest/test.h
+++ b/src/unittest/test.h
@@ -142,6 +142,6 @@ extern content_t t_CONTENT_WATER;
extern content_t t_CONTENT_LAVA;
extern content_t t_CONTENT_BRICK;
-void run_tests();
+bool run_tests();
#endif