From: Yu Watanabe Date: Sun, 25 Jun 2023 05:53:02 +0000 (+0900) Subject: test: skip if ldd command not found X-Git-Tag: v254-rc1~118 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f4522591e4be076bf309e23b9cec9dddfc99e29;p=thirdparty%2Fsystemd.git test: skip if ldd command not found Prompted by #28015. --- diff --git a/src/test/test-execute.c b/src/test/test-execute.c index b2721a0c7b8..164c1bc0337 100644 --- a/src/test/test-execute.c +++ b/src/test/test-execute.c @@ -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__);