summaryrefslogtreecommitdiff
path: root/sal/cppunittester
diff options
context:
space:
mode:
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