From: Michael Tremer Date: Sun, 5 Jan 2025 16:33:32 +0000 (+0000) Subject: tests: build: Use the correct macros to check for errors X-Git-Tag: 0.9.30~521 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fd979a681d18c6399a8b4598bc92715e9d527544;p=pakfire.git tests: build: Use the correct macros to check for errors Signed-off-by: Michael Tremer --- diff --git a/tests/libpakfire/build.c b/tests/libpakfire/build.c index 9f7b404cd..bf9f60671 100644 --- a/tests/libpakfire/build.c +++ b/tests/libpakfire/build.c @@ -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, t->config, NULL, "ABC", 0) == -EINVAL); + ASSERT_ERROR(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, t->config, NULL, "", 0) == -EINVAL); + ASSERT_ERROR(pakfire_build_create(&build, t->ctx, t->config, NULL, "", 0), EINVAL); return EXIT_SUCCESS;