Kaydet (Commit) 9e13afea authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Cover ctors/dtors of our TestFixtures under the protectors, too

Change-Id: I4c3030e5a205bd102d0427e74d2fe3b828ff5ae6
üst 127bfe4a
......@@ -217,8 +217,6 @@ public:
return false;
}
#endif
CppUnit::TestRunner runner;
runner.addTest(CppUnit::TestFactoryRegistry::getRegistry().makeTest());
CppUnit::TestResultCollector collector;
result.addListener(&collector);
......@@ -238,7 +236,12 @@ public:
for (size_t i = 0; i < protectors.size(); ++i)
result.pushProtector(protectors[i]);
runner.run(result);
{
CppUnit::TestRunner runner;
runner.addTest(
CppUnit::TestFactoryRegistry::getRegistry().makeTest());
runner.run(result);
}
for (size_t i = 0; i < protectors.size(); ++i)
result.popProtector();
......@@ -310,6 +313,8 @@ SAL_IMPLEMENT_MAIN() {
fn = (oslGenericFunction) unoexceptionprotector;
else if (sym == "unobootstrapprotector")
fn = (oslGenericFunction) unobootstrapprotector;
else if (sym == "vclbootstrapprotector")
fn = (oslGenericFunction) vclbootstrapprotector;
else
{
std::cerr
......
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