]> git.ipfire.org Git - pakfire.git/commitdiff
tests: file: It is now possible to set relative paths
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Nov 2022 21:04:38 +0000 (21:04 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Nov 2022 21:04:38 +0000 (21:04 +0000)
Fixes: #12976
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/libpakfire/file.c

index 6565ec2affac3956e372149039fec10da5339891..ae1716723f0d0b8747c0deaf87192e5be63e09ff 100644 (file)
@@ -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