mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 01:04:06 +00:00
Fix #739 (test failures).
Use JSON in debug serializer output unless it fails due to e.g. cyclic values, in which case use toSource. Disable file stats code by default, since its output isn't used. This was SVN commit r8975.
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include "lib/sysdep/os/win/wdbg_heap.h"
|
||||
#endif
|
||||
|
||||
#include "lib/timer.h"
|
||||
#include "lib/sysdep/sysdep.h"
|
||||
#include "scriptinterface/ScriptInterface.h"
|
||||
|
||||
@@ -64,7 +65,20 @@ class LeakReporter : public CxxTest::GlobalFixture
|
||||
|
||||
};
|
||||
|
||||
class TimerSetup : public CxxTest::GlobalFixture
|
||||
{
|
||||
virtual bool setUpWorld()
|
||||
{
|
||||
// Timer must be initialised, else things will break when tests do IO
|
||||
timer_LatchStartTime();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
static LeakReporter leakReporter;
|
||||
static TimerSetup timerSetup;
|
||||
|
||||
// Definition of functions from lib/self_test.h
|
||||
|
||||
|
||||
Reference in New Issue
Block a user