diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-06-03 14:49:55 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-06-04 08:55:12 +0200 |
commit | 9e13afeaf67b9c07762692cd858de4b577234ab7 (patch) | |
tree | c1a059b371a2096feada0285cedba43c07381b48 /sal/cppunittester | |
parent | 127bfe4afedabd729832c05cbe0232e76cf15863 (diff) |
Cover ctors/dtors of our TestFixtures under the protectors, too
Change-Id: I4c3030e5a205bd102d0427e74d2fe3b828ff5ae6
Diffstat (limited to 'sal/cppunittester')
-rw-r--r-- | sal/cppunittester/cppunittester.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sal/cppunittester/cppunittester.cxx b/sal/cppunittester/cppunittester.cxx index 0c5a2a1a4f40..9c58b271b19d 100644 --- a/sal/cppunittester/cppunittester.cxx +++ b/sal/cppunittester/cppunittester.cxx @@ -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 |