[cgma-dev] r2491 - cgm/trunk/test

janehu at mcs.anl.gov janehu at mcs.anl.gov
Thu Dec 18 14:03:40 CST 2008


Author: janehu
Date: 2008-12-18 14:03:40 -0600 (Thu, 18 Dec 2008)
New Revision: 2491

Modified:
   cgm/trunk/test/modify.cpp
Log:
Changed to not reporting failure because of expected ERROR
's.

Modified: cgm/trunk/test/modify.cpp
===================================================================
--- cgm/trunk/test/modify.cpp	2008-12-18 20:02:55 UTC (rev 2490)
+++ cgm/trunk/test/modify.cpp	2008-12-18 20:03:40 UTC (rev 2491)
@@ -79,10 +79,13 @@
      PRINT_INFO("Operation Failed");
 
   int ret_val = ( CubitMessage::instance()->error_count() );
-  if ( ret_val > 0 )
+  if ( ret_val != 5 )
   {
     PRINT_ERROR("Errors found during Mergechk session.\n");
   }
+  else
+    ret_val = 0;
+
   return ret_val;
   
 }
@@ -932,7 +935,7 @@
   //d = 8.07227
 
   //test sweep_along_curve function
-  //sweep along a staight curve with draft
+  //sweep along a straight curve with draft
   refentities.clean_out();
   refentities.append(rotate_face);
   CubitVector pt4(0,1,0);




More information about the cgma-dev mailing list