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:
parent
52fcb7b101
commit
c4cbebd356
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user