summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-05-15 14:07:09 +0200
committerPavel Machek <pavel@ucw.cz>2000-05-15 14:07:09 +0200
commit6be662d917822e9a23b0abd613e170c1d42bfdbe (patch)
tree9ee4e36d17d5409f595de093523e12869b7758d9
parente3f2d5fce3e339bb34f14d7b2569c1bd43b741ba (diff)
downloadbird-6be662d917822e9a23b0abd613e170c1d42bfdbe.tar
bird-6be662d917822e9a23b0abd613e170c1d42bfdbe.zip
Use new eval mechanism for testing filters.
-rw-r--r--filter/filter.c2
-rw-r--r--filter/test.conf2
2 files changed, 3 insertions, 1 deletions
diff --git a/filter/filter.c b/filter/filter.c
index c9350c9..84680c6 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -673,7 +673,7 @@ f_eval_int(struct f_inst *expr)
f_rte = NULL;
f_rte_old = NULL;
f_rta_copy = NULL;
- f_pool = NULL;
+ f_pool = cfg_mem;
res = interpret(expr);
if (res.type != T_INT)
cf_error("Integer expression expected");
diff --git a/filter/test.conf b/filter/test.conf
index e03f591..37cff13 100644
--- a/filter/test.conf
+++ b/filter/test.conf
@@ -141,3 +141,5 @@ int j;
accept "ok I take that";
}
+
+eval __startup(); \ No newline at end of file