summaryrefslogtreecommitdiff
path: root/src/mongo/unittest
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2015-03-16 11:48:45 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2015-03-18 12:40:44 -0400
commit0f6f2e9a199bff05c69ca5aace94a5ac8fe2cff3 (patch)
treed19d580d3af29919ec205e361015f421aa177686 /src/mongo/unittest
parent78541981780b9d3608ce6d43167e230ed03c6444 (diff)
downloadmongo-0f6f2e9a199bff05c69ca5aace94a5ac8fe2cff3.tar.gz
SERVER-17570: Fix NT Service shutdown race condition
Diffstat (limited to 'src/mongo/unittest')
-rw-r--r--src/mongo/unittest/crutch.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/unittest/crutch.cpp b/src/mongo/unittest/crutch.cpp
index 4a86df46ce0..59859207e5b 100644
--- a/src/mongo/unittest/crutch.cpp
+++ b/src/mongo/unittest/crutch.cpp
@@ -64,4 +64,14 @@ namespace mongo {
invariant(!"unittests shouldn't call exitCleanly");
}
+#ifdef _WIN32
+ void signalShutdown() {}
+
+namespace ntservice {
+ bool shouldStartService() {
+ return false;
+ }
+}
+#endif
+
} // namespace mongo