We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8741891 + c4e3617 commit dab6486Copy full SHA for dab6486
1 file changed
tests/TestTestMacros.cpp
@@ -136,6 +136,11 @@ TEST(FixturesWithThrowingCtorsAreFailures)
136
CHECK(strstr(reporter.lastFailedMessage, "while constructing fixture"));
137
}
138
139
+// Visual Studio 2015 in compliance with C++11 standard
140
+// implicitly adds a 'noexcept' to all user defined
141
+// destructors. Any exceptions thrown from destructors
142
+// cause abort() to be called on the process.
143
+#if(_MSC_VER < 1900)
144
struct FixtureDtorThrows
145
{
146
~FixtureDtorThrows() { throw "exception"; }
@@ -161,6 +166,7 @@ TEST(FixturesWithThrowingDtorsAreFailures)
161
166
CHECK_EQUAL(1, failureCount);
162
167
CHECK(strstr(reporter.lastFailedMessage, "while destroying fixture"));
163
168
169
+#endif
164
170
165
171
const int FailingLine = 123;
172
0 commit comments