]> git.ipfire.org Git - pakfire.git/commitdiff
tests: makefile: Update test to latest parser changes
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Mar 2021 11:46:27 +0000 (11:46 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Mar 2021 11:46:27 +0000 (11:46 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/libpakfire/makefile.c

index 22eb8eb9c5bd085e2088e5bf6c4470829230d21d..ed355103cf138072e75ff182aaf3884511afd4ee 100644 (file)
@@ -43,7 +43,7 @@ static int test_parse(const struct test* t) {
                FILE* f = fopen(path, "r");
                ASSERT(f);
 
-               PakfireParser parser = pakfire_parser_create(t->pakfire, NULL, NULL);
+               PakfireParser parser = pakfire_parser_create(t->pakfire, NULL, NULL, 0);
 
                int r = pakfire_parser_read(parser, f, NULL);
                ASSERT(r == 0);
@@ -67,7 +67,7 @@ static int test_macros(const struct test* t) {
        int r = glob(macros, 0, NULL, &buffer);
        ASSERT(r == 0);
 
-       PakfireParser parser = pakfire_parser_create(t->pakfire, NULL, NULL);
+       PakfireParser parser = pakfire_parser_create(t->pakfire, NULL, NULL, 0);
        ASSERT(parser);
 
        for (unsigned int i = 0; i < buffer.gl_pathc; i++) {