From d35542833636a41bba9a5dab5602399be89624d1 Mon Sep 17 00:00:00 2001 From: Pascal Junck Date: Tue, 2 Nov 2004 09:25:28 +0000 Subject: [PATCH] INTEGRATION: CWS qadev19 (1.15.20); FILE MERGED 2004/09/22 08:12:35 lla 1.15.20.1: #i34302# testshl2 will fail, if library can't load --- testshl2/source/testshl.cxx | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/testshl2/source/testshl.cxx b/testshl2/source/testshl.cxx index 13cc3af8a5df..80133e63f3f4 100644 --- a/testshl2/source/testshl.cxx +++ b/testshl2/source/testshl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: testshl.cxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: rt $ $Date: 2004-10-28 16:21:49 $ + * last change: $Author: pjunck $ $Date: 2004-11-02 10:25:28 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -295,7 +295,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) if ( opt.hasOpt("-verbose") ) { - fprintf(stderr, "testshl2 $Revision: 1.16 $\n"); + fprintf(stderr, "testshl2 $Revision: 1.17 $\n"); } if ( opt.hasOpt("-endless")) // this exists only for self test issues @@ -344,8 +344,17 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) AutomaticRegisterHelper aHelper(suLibraryName, opt /*, &aJobs*/); - // start the tests - nExitCode = starttest(opt, aHelper); + if (aHelper.isOkToStartTests()) + { + // start the tests + nExitCode = starttest(opt, aHelper); + } + else + { + + fprintf(stderr, "error: The library '%s' can't initialised, must quit.\n", opt.getFirstParam().getStr()); + nExitCode = 1; + } } }