0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

use file allocator in unit tests

This commit is contained in:
Aaron 2009-04-16 11:14:06 -04:00
parent 52fcb7b101
commit c4cbebd356

View File

@ -22,6 +22,7 @@
#include "dbtests.h"
#include "../db/javajs.h"
#include "../util/file_allocator.h"
#include <unittest/Registry.hpp>
@ -84,6 +85,10 @@ int main( int argc, char** argv ) {
printSysInfo();
out() << "random seed: " << seed << endl;
#if !defined(_WIN32)
theFileAllocator().start();
#endif
UnitTest::Registry tests;
// NOTE Starting JNI changes global state (for example, locale and FPU precision);