mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-15 20:53:50 +00:00
Increased stability Torqu3D: unit-tests running without a crash. See the console.log after ran unitTest_runTests( "", true ). @signmotion
This commit is contained in:
parent
29d7fe310d
commit
18ba0646c0
18 changed files with 113 additions and 19 deletions
|
|
@ -29,6 +29,8 @@
|
|||
|
||||
#include "unit/test.h"
|
||||
|
||||
#include "core/util/journal/process.h"
|
||||
|
||||
|
||||
namespace UnitTesting
|
||||
{
|
||||
|
|
@ -275,6 +277,9 @@ bool TestRun::test(const char* module, bool skipInteractive)
|
|||
|
||||
Platform::setCurrentDirectory(cwdSave);
|
||||
|
||||
// sanity check for avoid Process::requestShutdown() called on some tests
|
||||
Process::processEvents();
|
||||
|
||||
// And indicate our failure situation in the return value.
|
||||
return !_failureCount;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue