]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: more specific messages on test fails
authorprascle <prascle>
Sat, 15 Oct 2005 10:24:31 +0000 (10:24 +0000)
committerprascle <prascle>
Sat, 15 Oct 2005 10:24:31 +0000 (10:24 +0000)
src/LifeCycleCORBA/Test/LifeCycleCORBATest.cxx

index dc30adfed8dca7a0001e33021ee0d7f3e0e1e0f8..94a42a8cfd1d3e627a942a1051078c5c66c2c987 100644 (file)
@@ -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