chiark / gitweb /
path-util: also check for existence of binary when given absolute path
[elogind.git] / src / test / test-path-util.c
index a2cf0af75fef675774444ced03a7f49c81acb0b2..527b27565693959b89405da5c3d36115aed9b577 100644 (file)
@@ -104,6 +104,8 @@ static void test_find_binary(void) {
         free(p);
 
         assert(find_binary("xxxx-xxxx", &p) == -ENOENT);
+
+        assert(find_binary("/some/dir/xxxx-xxxx", &p) == -ENOENT);
 }
 
 static void test_prefixes(void) {