Start of work on valgrind test for mongos SERVER-1125

This commit is contained in:
Mathias Stearn
2010-05-25 22:08:45 -04:00
parent a6e5b141c2
commit 560b7baafc
3 changed files with 19 additions and 0 deletions

View File

@@ -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");