diff options
Diffstat (limited to 'src/mongo/unittest/crutch.cpp')
-rw-r--r-- | src/mongo/unittest/crutch.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/mongo/unittest/crutch.cpp b/src/mongo/unittest/crutch.cpp new file mode 100644 index 00000000000..e17a5e5428c --- /dev/null +++ b/src/mongo/unittest/crutch.cpp @@ -0,0 +1,34 @@ +/** +* Copyright (C) 2012 10gen Inc. +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU Affero General Public License, version 3, +* as published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Affero General Public License for more details. +* +* You should have received a copy of the GNU Affero General Public License +* along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +/** + * This file should go away. It contains stubs of functions that were needed to link the unit test + * framework. As we refactor the system, the contents of this file should _ONLY_ shrink, and + * eventually it should contain nothing. + */ + +#include "mongo/pch.h" + +#include "mongo/db/lasterror.h" +#include "mongo/util/assert_util.h" +#include "mongo/util/goodies.h" + +namespace mongo { + bool inShutdown() { return false; } + std::string getThreadName() { return "UNKNOWN"; } + void setLastError(int code, const char* msg) {} + bool StaticObserver::_destroyingStatics = false; +} // namespace mongo |