Changeset a2b3289 for tester.c


Ignore:
Timestamp:
Aug 17, 2009, 9:22:15 PM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
8bce750
Parents:
ecc958e
Message:
tester: Report the test count at the end, not the beginning.

A static test count is just too much effort to maintain correct.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester.c

    rd43edd2 ra2b3289  
    55owl_global g;
    66
    7 #define OWL_UTIL_NTESTS  9
    8 #define OWL_DICT_NTESTS  19
    9 #define OWL_OBARRAY_NTESTS  6
    10 #define OWL_VARIABLE_NTESTS  36
    11 #define OWL_FILTER_NTESTS  24
     7int numtests;
    128
    139int main(int argc, char **argv, char **env)
     
    1612  owl_obarray_init(&(g.obarray));
    1713
     14  numtests = 0;
    1815  int numfailures=0;
    19   printf("1..%d\n", OWL_UTIL_NTESTS+OWL_DICT_NTESTS+OWL_VARIABLE_NTESTS
    20          +OWL_FILTER_NTESTS+OWL_OBARRAY_NTESTS);
     16  /*
     17    printf("1..%d\n", OWL_UTIL_NTESTS+OWL_DICT_NTESTS+OWL_VARIABLE_NTESTS
     18    +OWL_FILTER_NTESTS+OWL_OBARRAY_NTESTS);
     19  */
    2120  numfailures += owl_util_regtest();
    2221  numfailures += owl_dict_regtest();
     
    2726      fprintf(stderr, "# *** WARNING: %d failures total\n", numfailures);
    2827  }
     28  printf("1..%d\n", numtests);
    2929  return(numfailures);
    3030}
Note: See TracChangeset for help on using the changeset viewer.