summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2010-05-25 22:08:45 -0400
committerMathias Stearn <mathias@10gen.com>2010-05-25 23:26:42 -0400
commit560b7baafc3183ededabe99a65510ee1f39ac385 (patch)
treec07ae14dfc52ae05fb388cd8e7b3c0aa4c406a5b /shell
parenta6e5b141c2d0bfac88d22fdf9d3bafc85c95b523 (diff)
downloadmongo-560b7baafc3183ededabe99a65510ee1f39ac385.tar.gz
Start of work on valgrind test for mongos SERVER-1125
Diffstat (limited to 'shell')
-rw-r--r--shell/utils.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/shell/utils.cpp b/shell/utils.cpp
index bb18126597b..3ad2b17ed5f 100644
--- a/shell/utils.cpp
+++ b/shell/utils.cpp
@@ -229,6 +229,16 @@ namespace mongo {
boost::filesystem::path programPath = program;
if (isMongoProgram){
+#if 0
+ if (program == "mongos") {
+ argv_.push_back("valgrind");
+ argv_.push_back("--leak-check=yes");
+ argv_.push_back("--suppressions=valgrind.suppressions");
+ //argv_.push_back("--error-exitcode=1");
+ argv_.push_back("--");
+ }
+#endif
+
programPath = boost::filesystem::initial_path() / programPath;
#ifdef _WIN32
programPath = change_extension(programPath, ".exe");