From 5eba7c3cb877ca3d054c65f71684e7532c9613b9 Mon Sep 17 00:00:00 2001 From: prascle Date: Sat, 15 Oct 2005 10:24:31 +0000 Subject: [PATCH] PR: more specific messages on test fails --- src/LifeCycleCORBA/Test/LifeCycleCORBATest.cxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/LifeCycleCORBA/Test/LifeCycleCORBATest.cxx b/src/LifeCycleCORBA/Test/LifeCycleCORBATest.cxx index dc30adfed..94a42a8cf 100644 --- a/src/LifeCycleCORBA/Test/LifeCycleCORBATest.cxx +++ b/src/LifeCycleCORBA/Test/LifeCycleCORBATest.cxx @@ -495,7 +495,9 @@ LifeCycleCORBATest::testFindOrLoad_Component_RemoteComputer() DEVTRACE("containerName = " << containerName); Engines::Component_var mycompo1 = _LCC.FindOrLoad_Component(containerName.c_str(),"SalomeTestComponent"); - CPPUNIT_ASSERT(!CORBA::is_nil(mycompo1)); + CPPUNIT_ASSERT_MESSAGE("Test validity requires connection to remote "\ + "computers from ResourcesCatalog", + !CORBA::is_nil(mycompo1)); // --- check narrow @@ -531,7 +533,9 @@ LifeCycleCORBATest::testFindOrLoad_Component_ParamsRemoteComputer() Engines::Component_var mycompo1 = _LCC.FindOrLoad_Component(params,"SalomeTestComponent"); - CPPUNIT_ASSERT(!CORBA::is_nil(mycompo1)); + CPPUNIT_ASSERT_MESSAGE("Test validity requires connection to remote "\ + "computers from ResourcesCatalog", + !CORBA::is_nil(mycompo1)); // --- check narrow @@ -568,7 +572,9 @@ LifeCycleCORBATest::testFindOrLoad_Component_ParamsRemoteComputer2() Engines::Component_var mycompo1 = _LCC.FindOrLoad_Component(params,"SalomeTestComponent"); - CPPUNIT_ASSERT(!CORBA::is_nil(mycompo1)); + CPPUNIT_ASSERT_MESSAGE("Test validity requires connection to remote "\ + "computers from ResourcesCatalog", + !CORBA::is_nil(mycompo1)); // --- check narrow -- 2.39.2