From: Michael Tremer Date: Sun, 5 Jan 2025 16:31:35 +0000 (+0000) Subject: tests: build: Pass the configuration X-Git-Tag: 0.9.30~522 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2655e3f724d3a0f44eba26a76f570f0b850d074;p=pakfire.git tests: build: Pass the configuration Signed-off-by: Michael Tremer --- diff --git a/tests/libpakfire/build.c b/tests/libpakfire/build.c index 0791f7264..9f7b404cd 100644 --- a/tests/libpakfire/build.c +++ b/tests/libpakfire/build.c @@ -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;