ucx/test.c

changeset 121
311cac04d079
parent 103
08018864fb91
child 134
4d320dc3a7af
     1.1 --- a/ucx/test.c	Sat Jul 20 11:13:26 2013 +0200
     1.2 +++ b/ucx/test.c	Mon Jul 22 11:39:06 2013 +0200
     1.3 @@ -81,8 +81,8 @@
     1.4  void ucx_test_run(UcxTestSuite* suite, FILE* output) {
     1.5      suite->success = 0;
     1.6      suite->failure = 0;
     1.7 -    UCX_FOREACH (UcxTestList*, suite->tests, e) {
     1.8 -        e->test(suite, output);
     1.9 +    for (UcxTestList* elem = suite->tests ; elem ; elem = elem->next) {
    1.10 +        elem->test(suite, output);
    1.11      }
    1.12      fwrite("\nAll test completed.\n", 1, 21, output);
    1.13      fprintf(output, "  Total:   %d\n  Success: %d\n  Failure: %d\n",

mercurial