diff options
| author | 2017-01-24 08:32:59 +0000 | |
|---|---|---|
| committer | 2017-01-24 08:32:59 +0000 | |
| commit | 53d771aafdbe5b919f264f53cba3788e2c4cffd2 (patch) | |
| tree | 7eca39498be0ff1e3a6daf583cd9ca5886bb2636 /gnu/llvm/utils/unittest/UnitTestMain/TestMain.cpp | |
| parent | In preparation of compiling our kernels with -ffreestanding, explicitly map (diff) | |
| download | wireguard-openbsd-53d771aafdbe5b919f264f53cba3788e2c4cffd2.tar.xz wireguard-openbsd-53d771aafdbe5b919f264f53cba3788e2c4cffd2.zip | |
Import LLVM 4.0.0 rc1 including clang and lld to help the current
development effort on OpenBSD/arm64.
Diffstat (limited to 'gnu/llvm/utils/unittest/UnitTestMain/TestMain.cpp')
| -rw-r--r-- | gnu/llvm/utils/unittest/UnitTestMain/TestMain.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/llvm/utils/unittest/UnitTestMain/TestMain.cpp b/gnu/llvm/utils/unittest/UnitTestMain/TestMain.cpp index 36cec2d4742..5660b44f41a 100644 --- a/gnu/llvm/utils/unittest/UnitTestMain/TestMain.cpp +++ b/gnu/llvm/utils/unittest/UnitTestMain/TestMain.cpp @@ -9,9 +9,9 @@ #include "llvm/Support/CommandLine.h" #include "llvm/Support/Signals.h" +#include "gmock/gmock.h" #include "gtest/gtest.h" - #if defined(_WIN32) # include <windows.h> # if defined(_MSC_VER) @@ -24,7 +24,10 @@ const char *TestMainArgv0; int main(int argc, char **argv) { llvm::sys::PrintStackTraceOnErrorSignal(argv[0], true /* Disable crash reporting */); - testing::InitGoogleTest(&argc, argv); + + // Initialize both gmock and gtest. + testing::InitGoogleMock(&argc, argv); + llvm::cl::ParseCommandLineOptions(argc, argv); // Make it easy for a test to re-execute itself by saving argv[0]. |
