|
|
|
@ -301,7 +301,7 @@ static void psetup_impl(int load2) |
|
|
|
|
f = fdopen(open_testfile("input/daily.pdb"),"r"); |
|
|
|
|
fail_unless(!!f, "fopen daily.pdb"); |
|
|
|
|
|
|
|
|
|
rc = load_regex_matcher(engine, engine->domainlist_matcher, f, &signo, 0, 0, NULL, 1); |
|
|
|
|
rc = load_regex_matcher(engine->domainlist_matcher, f, &signo, 0, 0, NULL, 1); |
|
|
|
|
fail_unless(rc == 0, "load_regex_matcher"); |
|
|
|
|
fclose(f); |
|
|
|
|
|
|
|
|
@ -312,7 +312,7 @@ static void psetup_impl(int load2) |
|
|
|
|
fail_unless(!!f, "fopen daily.gdb"); |
|
|
|
|
|
|
|
|
|
signo = 0; |
|
|
|
|
rc = load_regex_matcher(engine, engine->domainlist_matcher, f, &signo, 0, 0, NULL, 1); |
|
|
|
|
rc = load_regex_matcher(engine->domainlist_matcher, f, &signo, 0, 0, NULL, 1); |
|
|
|
|
fail_unless(rc == 0, "load_regex_matcher"); |
|
|
|
|
fclose(f); |
|
|
|
|
|
|
|
|
@ -325,7 +325,7 @@ static void psetup_impl(int load2) |
|
|
|
|
|
|
|
|
|
f = fdopen(open_testfile("input/daily.wdb"),"r"); |
|
|
|
|
signo = 0; |
|
|
|
|
rc = load_regex_matcher(engine, engine->whitelist_matcher, f, &signo, 0, 1, NULL, 1); |
|
|
|
|
rc = load_regex_matcher(engine->whitelist_matcher, f, &signo, 0, 1, NULL, 1); |
|
|
|
|
fail_unless(rc == 0,"load_regex_matcher"); |
|
|
|
|
fclose(f); |
|
|
|
|
|
|
|
|
|