Commit 0acdf796 authored by Adrian Moran's avatar Adrian Moran
Browse files

Avoid full test in no exceptions are enabled.


Signed-off-by: default avatarAdrian Moran <amoran@ikerlan.es>
parent a5190506
......@@ -31,15 +31,14 @@
// Tests Google Mock's functionality that depends on exceptions.
#if GTEST_HAS_EXCEPTIONS
#include "gmock/gmock.h"
#include "gtest/gtest.h"
namespace {
using testing::HasSubstr;
#if GTEST_HAS_EXCEPTIONS
using testing::internal::GoogleTestFailureException;
#endif
// A type that cannot be default constructed.
class NonDefaultConstructible {
......@@ -54,7 +53,6 @@ class MockFoo {
MOCK_METHOD0(GetNonDefaultConstructible, NonDefaultConstructible());
};
#if GTEST_HAS_EXCEPTIONS
TEST(DefaultValueTest, ThrowsRuntimeErrorWhenNoDefaultValue) {
MockFoo mock;
......@@ -78,6 +76,5 @@ TEST(DefaultValueTest, ThrowsRuntimeErrorWhenNoDefaultValue) {
}
}
#endif
} // unnamed namespace
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment