diff options
author | Dwight <dwight@10gen.com> | 2010-12-30 12:21:17 -0500 |
---|---|---|
committer | Dwight <dwight@10gen.com> | 2010-12-30 12:21:29 -0500 |
commit | 4bda3b3d4db6b23ffe5eb385e60c7a50bef19a43 (patch) | |
tree | 838bab76925dcd2606cffe9ae1ce5818ed0e7f4c /dbtests | |
parent | d62ca23e4a825e04d38704d3939901dfc398dbc3 (diff) | |
download | mongo-4bda3b3d4db6b23ffe5eb385e60c7a50bef19a43.tar.gz |
fix mmap unit test to avoid warning log messages
Diffstat (limited to 'dbtests')
-rwxr-xr-x | dbtests/mmaptests.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dbtests/mmaptests.cpp b/dbtests/mmaptests.cpp index 8d5542da116..a4deb9b8515 100755 --- a/dbtests/mmaptests.cpp +++ b/dbtests/mmaptests.cpp @@ -23,10 +23,12 @@ namespace MMapTests { - string fn = "/tmp/testfile.map"; - class LeakTest { + const string fn; public: + LeakTest() : + fn( (path(dbpath) / "testfile.map").string() ) + { } ~LeakTest() { try { boost::filesystem::remove(fn); } catch(...) { } } |