summaryrefslogtreecommitdiff
path: root/sal/cppunittester
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-10-11 11:14:54 +0300
committerTor Lillqvist <tlillqvist@suse.com>2012-10-11 11:15:49 +0300
commitef8b17930977c5a8141386839e9d4c1dfe3e2d65 (patch)
tree05ce29e51d0e065c746ff3766d41a39cc91ee9fc /sal/cppunittester
parent62fddc0c00c8e960642d2c2a426852f77147ce2e (diff)
Be consistent with surrounding code
Change-Id: Ice88c3912c2fd0d99156acaa8e15518acab3b55b
Diffstat (limited to 'sal/cppunittester')
-rw-r--r--sal/cppunittester/cppunittester.cxx6
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