Changeset 535d68b


Ignore:
Timestamp:
Jul 7, 2007, 5:43:22 PM (17 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
93f65b6
Parents:
1cf3f8d3
Message:
Forgot these in the last commit; Make all the tests output TAP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • filter.c

    rd791cdb r535d68b  
    283283  int failed = 0;
    284284  if(owl_filter_init_fromstring(&f, "test-filter", filt)) {
    285     printf("\tFAIL: parse %s\n", filt);
     285    printf("not ok can't parse %s\n", filt);
    286286    failed = 1;
    287287    goto out;
     
    289289  ok = owl_filter_message_match(&f, m);
    290290  if((shouldmatch && !ok) || (!shouldmatch && ok)) {
    291     printf("\tFAIL: match %s (got %d, expected %d)\n", filt, ok, shouldmatch);
     291    printf("not ok match %s (got %d, expected %d)\n", filt, ok, shouldmatch);
    292292    failed = 1;
    293293  }
     
    295295  owl_filter_free(&f);
    296296  if(!failed) {
    297     printf("\tok  : %s %s\n", shouldmatch ? "matches" : "doesn't match", filt);
     297    printf("ok %s %s\n", shouldmatch ? "matches" : "doesn't match", filt);
    298298  }
    299299  return failed;
  • obarray.c

    rdb90f03 r535d68b  
    8080  owl_obarray_init(&oa);
    8181
    82   printf("BEGIN testing owl_obarray\n");
     82  printf("# BEGIN testing owl_obarray\n");
    8383
    8484  p = owl_obarray_insert(&oa, "test");
     
    9696  FAIL_UNLESS("Didn't find a string that isn't there", p == NULL);
    9797
    98   printf("END testing owl_obarray (%d failures)\n", numfailed);
     98  printf("# END testing owl_obarray (%d failures)\n", numfailed);
    9999
    100100  return numfailed;
Note: See TracChangeset for help on using the changeset viewer.