]> git.ipfire.org Git - pakfire.git/commitdiff
tests: build: Pass the configuration
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 5 Jan 2025 16:31:35 +0000 (16:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 5 Jan 2025 16:31:35 +0000 (16:31 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/libpakfire/build.c

index 0791f7264f4a1cc289941157e74f77242ba871db..9f7b404cdf75c5c0681d6aef4cb4bb1e85bd748d 100644 (file)
@@ -28,7 +28,7 @@ static int test_create_and_free(const struct test* t) {
        struct pakfire_build* build = NULL;
 
        // Create a new build
-       ASSERT_SUCCESS(pakfire_build_create(&build, t->ctx, NULL, NULL, 0));
+       ASSERT_SUCCESS(pakfire_build_create(&build, t->ctx, t->config, NULL, NULL, 0));
 
        // Check if build actually got allocated
        ASSERT(build);
@@ -46,10 +46,10 @@ static int test_create_with_invalid_ids(const struct test* t) {
        struct pakfire_build* build = NULL;
 
        // Try to create a build with an invalid UUID
-       ASSERT(pakfire_build_create(&build, t->ctx, NULL, "ABC", 0) == -EINVAL);
+       ASSERT(pakfire_build_create(&build, t->ctx, t->config, NULL, "ABC", 0) == -EINVAL);
 
        // Try to create a build with an empty UUID
-       ASSERT(pakfire_build_create(&build, t->ctx, NULL, "", 0) == -EINVAL);
+       ASSERT(pakfire_build_create(&build, t->ctx, t->config, NULL, "", 0) == -EINVAL);
 
        return EXIT_SUCCESS;