diff options
author | Mathias Stearn <mathias@10gen.com> | 2014-08-15 18:11:36 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2014-08-20 13:57:04 -0400 |
commit | 4cec893ff09f7688c934c5b9a5792bf1c370974d (patch) | |
tree | 7a5209d4d9b106cbcf5bf5d890ba6ec489d3fcaa /src/mongo/unittest/crutch.cpp | |
parent | 4f379f1c6689481b74d3672effdc7cd81a5f5d9a (diff) | |
download | mongo-4cec893ff09f7688c934c5b9a5792bf1c370974d.tar.gz |
SERVER-14925 Shutdown command should exit cleanly
Diffstat (limited to 'src/mongo/unittest/crutch.cpp')
-rw-r--r-- | src/mongo/unittest/crutch.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/unittest/crutch.cpp b/src/mongo/unittest/crutch.cpp index 6bb07a19d6c..3ed5798d61a 100644 --- a/src/mongo/unittest/crutch.cpp +++ b/src/mongo/unittest/crutch.cpp @@ -57,7 +57,11 @@ namespace mongo { } void dbexit(ExitCode rc, const char *why) { - fassertFailed(17250); + invariant(!"unittests shouldn't call dbexit"); + } + + void exitCleanly( ExitCode code, OperationContext* txn ) { + invariant(!"unittests shouldn't call exitCleanly"); } } // namespace mongo |