summaryrefslogtreecommitdiffstats
path: root/googletest/test
diff options
context:
space:
mode:
authorBilly Donahue <BillyDonahue@users.noreply.github.com>2017-05-02 18:53:21 (GMT)
committerGitHub <noreply@github.com>2017-05-02 18:53:21 (GMT)
commit0ad83afdaa3319dadd9f03299bd62f93e6afe2d3 (patch)
treeb1ce97f8600b713f796b4984c867cb75d585eabc /googletest/test
parent69c6db249af5e74cf5b6d6b455813f79faf52835 (diff)
parent518e0519ca49c3a6504d1e377c5a467434d5f719 (diff)
downloadgoogletest-0ad83afdaa3319dadd9f03299bd62f93e6afe2d3.zip
googletest-0ad83afdaa3319dadd9f03299bd62f93e6afe2d3.tar.gz
googletest-0ad83afdaa3319dadd9f03299bd62f93e6afe2d3.tar.bz2
Merge pull request #1034 from dankegel/master
Minimal changes to fix build failures on Microsoft Visual Studio 2015
Diffstat (limited to 'googletest/test')
-rw-r--r--googletest/test/gtest-printers_test.cc2
-rw-r--r--googletest/test/gtest_catch_exceptions_test_.cc2
2 files changed, 3 insertions, 1 deletions
diff --git a/googletest/test/gtest-printers_test.cc b/googletest/test/gtest-printers_test.cc
index af69f28..107b10f 100644
--- a/googletest/test/gtest-printers_test.cc
+++ b/googletest/test/gtest-printers_test.cc
@@ -216,6 +216,7 @@ using ::testing::internal::UniversalTersePrintTupleFieldsToStrings;
#endif
using ::testing::internal::string;
+#if GTEST_HAS_HASH_MAP_
// The hash_* classes are not part of the C++ standard. STLport
// defines them in namespace std. MSVC defines them in ::stdext. GCC
// defines them in ::.
@@ -230,6 +231,7 @@ using ::stdext::hash_set;
using ::stdext::hash_multimap;
using ::stdext::hash_multiset;
#endif
+#endif
// Prints a value to a string using the universal value printer. This
// is a helper for testing UniversalPrinter<T>::Print() for various types.
diff --git a/googletest/test/gtest_catch_exceptions_test_.cc b/googletest/test/gtest_catch_exceptions_test_.cc
index d0fc82c..b42637e 100644
--- a/googletest/test/gtest_catch_exceptions_test_.cc
+++ b/googletest/test/gtest_catch_exceptions_test_.cc
@@ -138,7 +138,7 @@ TEST_F(CxxExceptionInConstructorTest, ThrowsExceptionInConstructor) {
}
// Exceptions in destructors are not supported in C++11.
-#if !defined(__GXX_EXPERIMENTAL_CXX0X__) && __cplusplus < 201103L
+#if !defined(__GXX_EXPERIMENTAL_CXX0X__) && __cplusplus < 201103L && _MSC_VER < 1900
class CxxExceptionInDestructorTest : public Test {
public:
static void TearDownTestCase() {