File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed
Release/tests/common/UnitTestpp/src/tests Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -168,39 +168,6 @@ TEST(FixturesWithThrowingCtorsAreFailures)
168168 CHECK (strstr (reporter.lastFailedMessage , " while constructing fixture" ));
169169}
170170
171- struct FixtureDtorThrows
172- {
173- #if defined(_MSC_VER)
174- #pragma warning (push)
175- #pragma warning ( disable : 4297 )
176- #endif
177- ~FixtureDtorThrows () { throw " exception" ; }
178- #if defined(_MSC_VER)
179- #pragma warning (pop)
180- #endif
181- };
182-
183- TestList throwingFixtureTestList2;
184- TEST_FIXTURE_EX (FixtureDtorThrows, FixtureDtorThrowsTestName, throwingFixtureTestList2)
185- {
186- }
187-
188- TEST (FixturesWithThrowingDtorsAreFailures)
189- {
190- CHECK (throwingFixtureTestList2.GetFirst () != NULL );
191-
192- RecordingReporter reporter;
193- TestResults result (&reporter);
194- {
195- ScopedCurrentTest scopedResult (result);
196- throwingFixtureTestList2.GetFirst ()->Run ();
197- }
198-
199- int const failureCount = result.GetFailedTestCount ();
200- CHECK_EQUAL (1 , failureCount);
201- CHECK (strstr (reporter.lastFailedMessage , " while destroying fixture" ));
202- }
203-
204171const int FailingLine = 123 ;
205172
206173struct FixtureCtorAsserts
You can’t perform that action at this time.
0 commit comments