Changeset 9711a6e


Ignore:
Timestamp:
Nov 17, 2008, 6:55:32 PM (9 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
2209f16
Parents:
9a2ae6c
Message:
Add a test case to filter.c for referencing a filter multiple times.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • filter.c

    rcdc6ff1 r9711a6e  
    33
    44static const char fileIdent[] = "$Id$";
    5 
    6 #define OWL_FILTER_MAXRECURSE 20
    75
    86int owl_filter_init_fromstring(owl_filter *f, char *name, char *string)
     
    5048  /* Now check for recursion. */
    5149  if (owl_filter_is_toodeep(f)) {
    52     owl_function_error("Filter loop or exceeds recursion depth");
     50    owl_function_error("Filter loop!");
    5351    owl_filter_free(f);
    5452    return(-1);
     
    313311  int numfailed=0;
    314312  owl_message m;
    315   owl_filter f1, f2, f3, f4;
     313  owl_filter f1, f2, f3, f4, f5;
    316314
    317315  owl_list_create(&(g.filterlist));
     
    365363  FAIL_UNLESS("mutual recursion",   owl_filter_init_fromstring(&f4, "f4", "filter f3"));
    366364
     365  /* support referencing a filter several times */
     366  FAIL_UNLESS("DAG", !owl_filter_init_fromstring(&f5, "dag", "filter f1 or filter f1"));
     367
    367368  return 0;
    368369}
Note: See TracChangeset for help on using the changeset viewer.