OSSP CVS Repository

ossp - Difference in ossp-pkg/ex/ex_test.c versions 1.1 and 1.2
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/ex/ex_test.c 1.1 -> 1.2

--- ex_test.c    2002/01/25 15:25:51     1.1
+++ ex_test.c    2002/01/25 22:23:17     1.2
@@ -60,13 +60,15 @@
 {
     srandom((unsigned int)time(NULL));
     ex_t e;
-    
+
     fprintf(stderr, "main-0\n");
     for (;;) {
         fprintf(stderr, "main-1\n");
         try {
             fprintf(stderr, "main-2\n");
-            foo_func();
+            ex_shield {
+                foo_func();
+            }
             fprintf(stderr, "main-3\n");
             for (;;) {
                 fprintf(stderr, "main-4\n");
@@ -96,6 +98,8 @@
             fprintf(stderr, "   %s@%s:%d class=0x%lx object=0x%lx value=0x%lx\n", 
                     e.ex_func, e.ex_file, e.ex_line, (long)e.ex_class, (long)e.ex_object, (long)e.ex_value);
             fprintf(stderr, "main-12\n");
+            if (e.ex_class == FOO_CLASS && (foo_rc_t)(e.ex_value) == FOO_ERR_2)
+                break;
         }
     }
     fprintf(stderr, "main-0\n");

CVSTrac 2.0.1