summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_context_d_test_fixture.h
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2018-08-07 11:49:05 -0400
committerHenrik Edin <henrik.edin@mongodb.com>2018-08-07 14:08:01 -0400
commit4c16f0f336f4db77034e8aa594bbd4a5bac3f40c (patch)
tree9b5540d0e3c20d01b3dd698442d4e131b5b8a758 /src/mongo/db/service_context_d_test_fixture.h
parent0ed9472dc8c2f85e957052f01336b1247c7a6e75 (diff)
downloadmongo-4c16f0f336f4db77034e8aa594bbd4a5bac3f40c.tar.gz
SERVER-36351 Fix so ServiceContextMongoDTest removes the temp directory in its destructor.
Diffstat (limited to 'src/mongo/db/service_context_d_test_fixture.h')
-rw-r--r--src/mongo/db/service_context_d_test_fixture.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/service_context_d_test_fixture.h b/src/mongo/db/service_context_d_test_fixture.h
index 19619f0d0fe..e574c408d8f 100644
--- a/src/mongo/db/service_context_d_test_fixture.h
+++ b/src/mongo/db/service_context_d_test_fixture.h
@@ -30,6 +30,7 @@
#include "mongo/db/operation_context.h"
#include "mongo/db/service_context_test_fixture.h"
+#include "mongo/unittest/temp_dir.h"
#include "mongo/unittest/unittest.h"
namespace mongo {
@@ -52,6 +53,7 @@ private:
std::string engine;
bool engineSetByUser;
} _stashedStorageParams;
+ unittest::TempDir _tempDir;
};
} // namespace mongo