From d749281bed6e9d413b10f008250b77530892f160 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 19 Mar 2023 19:03:30 +0000 Subject: [PATCH] tests: Check if relative/absolute paths confuse pakfire_path_match Signed-off-by: Michael Tremer --- tests/libpakfire/util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/libpakfire/util.c b/tests/libpakfire/util.c index 54d6df0d1..28f5dcee2 100644 --- a/tests/libpakfire/util.c +++ b/tests/libpakfire/util.c @@ -99,6 +99,9 @@ static int test_path_match(const struct test* t) { ASSERT_TRUE(pakfire_path_match("/usr/lib64/**/*.so", "/usr/lib64/blah/module.so")); ASSERT_FALSE(pakfire_path_match("/usr/lib64/*.so.*", "/usr/lib64/beep")); + // Relatve vs. absolute? + ASSERT_FALSE(pakfire_path_match("/usr/lib/*.so", "relative-path")); + return EXIT_SUCCESS; FAIL: -- 2.47.3