Index: ossp-pkg/ex/ex_test.c RCS File: /v/ossp/cvs/ossp-pkg/ex/ex_test.c,v rcsdiff -q -kk '-r1.7' '-r1.8' -u '/v/ossp/cvs/ossp-pkg/ex/ex_test.c,v' 2>/dev/null --- 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"); }