From: Michael Tremer Date: Wed, 1 Nov 2023 14:34:57 +0000 (+0000) Subject: tests: util: The base64 functions are anchored to the context now X-Git-Tag: 0.9.30~1343 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe14fc699acb5cf1f77349fc697d88effc395273;p=pakfire.git tests: util: The base64 functions are anchored to the context now Signed-off-by: Michael Tremer --- diff --git a/tests/libpakfire/util.c b/tests/libpakfire/util.c index 3ee6492a5..ca9fde5a7 100644 --- a/tests/libpakfire/util.c +++ b/tests/libpakfire/util.c @@ -95,13 +95,13 @@ static int test_base64(const struct test* t) { size_t length = 0; // Encode data as base64 - ASSERT_SUCCESS(pakfire_b64encode(t->pakfire, &base64, data, sizeof(data))); + ASSERT_SUCCESS(pakfire_b64encode(t->ctx, &base64, data, sizeof(data))); // Print the encoded data printf("%s\n", base64); // Decode the data - ASSERT_SUCCESS(pakfire_b64decode(t->pakfire, &output, &length, base64)); + ASSERT_SUCCESS(pakfire_b64decode(t->ctx, &output, &length, base64)); // Print the decoded data printf("%.*s\n", length, output); @@ -124,8 +124,8 @@ FAIL: int main(int argc, const char* argv[]) { testsuite_add_test(test_mkdir, TEST_WANTS_PAKFIRE); - testsuite_add_test(test_path_match, TEST_WANTS_PAKFIRE); - testsuite_add_test(test_base64, TEST_WANTS_PAKFIRE); + testsuite_add_test(test_path_match, 0); + testsuite_add_test(test_base64, 0); return testsuite_run(argc, argv); }