diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-10-11 11:14:54 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-10-11 11:15:49 +0300 |
commit | ef8b17930977c5a8141386839e9d4c1dfe3e2d65 (patch) | |
tree | 05ce29e51d0e065c746ff3766d41a39cc91ee9fc /sal | |
parent | WaE: 'fn' may be used uninitialized in this function (diff) | |
download | core-ef8b17930977c5a8141386839e9d4c1dfe3e2d65.tar.gz core-ef8b17930977c5a8141386839e9d4c1dfe3e2d65.zip |
Be consistent with surrounding code
Change-Id: Ice88c3912c2fd0d99156acaa8e15518acab3b55b
Diffstat (limited to 'sal')
-rw-r--r-- | sal/cppunittester/cppunittester.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sal/cppunittester/cppunittester.cxx b/sal/cppunittester/cppunittester.cxx index 3d4dadc1f417..81cf9bfe860d 100644 --- a/sal/cppunittester/cppunittester.cxx +++ b/sal/cppunittester/cppunittester.cxx @@ -231,8 +231,10 @@ SAL_IMPLEMENT_MAIN() { fn = (oslGenericFunction) unobootstrapprotector; else { - fprintf(stderr, "Only unoexceptionprotector or unobootstrapprotector protectors allowed\n"); - assert(!"unrecognized protector"); + std::cerr + << "Only unoexceptionprotector or unobootstrapprotector protectors allowed" + << std::endl; + std::exit(EXIT_FAILURE); } #endif CppUnit::Protector *protector = fn == 0 |