mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Remove some abort() calls
abort() doesn't benefit from the high level abstractions from FATAL_ERROR.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
////
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user