diff options
author | Bryan O'Sullivan <bos@lindenlab.com> | 2009-09-29 16:20:20 -0700 |
---|---|---|
committer | Bryan O'Sullivan <bos@lindenlab.com> | 2009-09-29 16:20:20 -0700 |
commit | 9b8b0571645f8b607ecc24221c807cc02a03692f (patch) | |
tree | f52f58138ecf70abf21f2a1b62097c3cbfce1c2f /indra/test/test.cpp | |
parent | 6d887be5895286f6b65ea751014f33bd9e0faac4 (diff) | |
parent | 5798ac6fc8488f02d3a2f338f5b5eeedb35e7ba6 (diff) |
Merge
Diffstat (limited to 'indra/test/test.cpp')
-rw-r--r-- | indra/test/test.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/test/test.cpp b/indra/test/test.cpp index ba81c6e49e..e7ba8e33b8 100644 --- a/indra/test/test.cpp +++ b/indra/test/test.cpp @@ -54,6 +54,11 @@ # include "ctype_workaround.h" #endif +#ifndef LL_WINDOWS +#include <gmock/gmock.h> +#include <gtest/gtest.h> +#endif + namespace tut { std::string sSourceDir; @@ -238,6 +243,11 @@ void wouldHaveCrashed(const std::string& message) int main(int argc, char **argv) { + // The following line must be executed to initialize Google Mock + // (and Google Test) before running the tests. +#ifndef LL_WINDOWS + ::testing::InitGoogleMock(&argc, argv); +#endif LLError::initForApplication("."); LLError::setFatalFunction(wouldHaveCrashed); LLError::setDefaultLevel(LLError::LEVEL_ERROR); |