diff options
author | Pavel Machek <pavel@ucw.cz> | 2000-04-26 10:03:50 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2000-04-26 10:03:50 +0200 |
commit | 7a86a8b08db03f002a672d1e8a6481ad52114d1e (patch) | |
tree | 8836e9031a335c91a27ff89b238cf17f008a7a53 /filter/filter.c | |
parent | 471bd6c30bb0d172699ea7af8f8b9356c8fe48b3 (diff) | |
download | bird-7a86a8b08db03f002a672d1e8a6481ad52114d1e.tar bird-7a86a8b08db03f002a672d1e8a6481ad52114d1e.zip |
Added code for testing filters.
Diffstat (limited to 'filter/filter.c')
-rw-r--r-- | filter/filter.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/filter/filter.c b/filter/filter.c index 172e77b..fd099a6 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -5,8 +5,6 @@ * * Can be freely distributed and used under the terms of the GNU GPL. * - * Notice that pair is stored as integer: first << 16 | second - * */ #define LOCAL_DEBUG @@ -26,7 +24,7 @@ #define P(a,b) ((a<<8) | b) -struct f_inst *startup_func = NULL; +struct f_inst *startup_func = NULL, *test1_func, *test2_func; #define CMP_ERROR 999 @@ -630,6 +628,9 @@ void filters_postconfig(void) { struct f_val res; + + if (!i_same(test1_func, test2_func)) + bug("i_same does not work"); if (startup_func) { debug( "Launching startup function...\n" ); f_pool = lp_new(&root_pool, 1024); |