- Timestamp:
- Jul 7, 2007, 5:43:22 PM (17 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
filter.c
rd791cdb r535d68b 283 283 int failed = 0; 284 284 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); 286 286 failed = 1; 287 287 goto out; … … 289 289 ok = owl_filter_message_match(&f, m); 290 290 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); 292 292 failed = 1; 293 293 } … … 295 295 owl_filter_free(&f); 296 296 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); 298 298 } 299 299 return failed;
Note: See TracChangeset
for help on using the changeset viewer.