From: Michael Tremer Date: Thu, 3 Nov 2022 21:04:38 +0000 (+0000) Subject: tests: file: It is now possible to set relative paths X-Git-Tag: 0.9.28~146 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4265ab3857b94dd16264fcd340e232cc4b0451f4;p=pakfire.git tests: file: It is now possible to set relative paths Fixes: #12976 Signed-off-by: Michael Tremer --- diff --git a/tests/libpakfire/file.c b/tests/libpakfire/file.c index 6565ec2af..ae1716723 100644 --- a/tests/libpakfire/file.c +++ b/tests/libpakfire/file.c @@ -50,8 +50,7 @@ static int test_create_invalid(const struct test* t) { // Set path ASSERT_ERRNO(pakfire_file_set_path(file, NULL), EINVAL); - // It should not be possible to set relative paths - ASSERT_ERRNO(pakfire_file_set_path(file, "abc/abc"), EINVAL); + // It should not be possible to set relative absolute paths ASSERT_ERRNO(pakfire_file_set_abspath(file, "abc/abc"), EINVAL); // Destroy it