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:
Ykkrosh
2011-02-24 00:32:38 +00:00
parent 059a53dd37
commit f6c1d98c9a
9 changed files with 107 additions and 19 deletions
+14
View File
@@ -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