summaryrefslogtreecommitdiff
path: root/dbtests
diff options
context:
space:
mode:
authorDwight <dwight@10gen.com>2010-12-30 12:21:17 -0500
committerDwight <dwight@10gen.com>2010-12-30 12:21:29 -0500
commit4bda3b3d4db6b23ffe5eb385e60c7a50bef19a43 (patch)
tree838bab76925dcd2606cffe9ae1ce5818ed0e7f4c /dbtests
parentd62ca23e4a825e04d38704d3939901dfc398dbc3 (diff)
downloadmongo-4bda3b3d4db6b23ffe5eb385e60c7a50bef19a43.tar.gz
fix mmap unit test to avoid warning log messages
Diffstat (limited to 'dbtests')
-rwxr-xr-xdbtests/mmaptests.cpp6
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(...) { }
}