Skip to content

Commit 4811c65

Browse files
committed
Removing unittestpp framework test for throwing destructors since it fails on 140 toolset.
1 parent 07ceb14 commit 4811c65

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

Release/tests/common/UnitTestpp/src/tests/TestTestMacros.cpp

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff 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-
204171
const int FailingLine = 123;
205172

206173
struct FixtureCtorAsserts

0 commit comments

Comments
 (0)