OSSP CVS Repository

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

ossp-pkg/ex/ex_test.c 1.7 -> 1.8

--- ex_test.c    2002/01/30 10:33:36     1.7
+++ ex_test.c    2002/01/30 10:40:07     1.8
@@ -144,12 +144,12 @@
 {
     ex_t ex;
     volatile int v1;
-    int cleanup;
+    int c;
 
     ts_test_check(TS_CTX, "cleanup handling");
 
     v1 = 1234;
-    cleanup = 0;
+    c = 0;
     ex_try {
         v1 = 5678;
         ex_throw(1, 2, 3);
@@ -157,7 +157,7 @@
     ex_cleanup {
         if (v1 != 5678)
             ts_test_fail(TS_CTX, "v1 = %d (!= 5678)", v1);
-        cleanup = 1;
+        c = 1;
     }
     ex_catch (ex) {
         if (v1 != 5678)
@@ -165,7 +165,7 @@
         if (!(ex.ex_class == (void *)1 && ex.ex_object == (void *)2 && ex.ex_value == (void *)3))
             ts_test_fail(TS_CTX, "unexpected exception contents");
     }
-    if (!cleanup)
+    if (!c)
         ts_test_fail(TS_CTX, "ex_cleanup not executed");
 }
 

CVSTrac 2.0.1