]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: skip if ldd command not found
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 25 Jun 2023 05:53:02 +0000 (14:53 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 26 Jun 2023 10:27:08 +0000 (11:27 +0100)
Prompted by #28015.

src/test/test-execute.c

index b2721a0c7b890d7414516116af866e2f9b2defee..164c1bc0337e6ac86bf3c5f91c1d69fc86be819b 100644 (file)
@@ -673,6 +673,11 @@ static void test_exec_mount_apivfs(Manager *m) {
 
         assert_se(user_runtime_unit_dir);
 
+        r = find_executable("ldd", NULL);
+        if (r < 0) {
+                log_notice_errno(r, "Skipping %s, could not find 'ldd' command: %m", __func__);
+                return;
+        }
         r = find_executable("touch", &fullpath_touch);
         if (r < 0) {
                 log_notice_errno(r, "Skipping %s, could not find 'touch' command: %m", __func__);