Changeset 535d68b for filter.c


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
File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.