From 9f4522591e4be076bf309e23b9cec9dddfc99e29 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 25 Jun 2023 14:53:02 +0900 Subject: [PATCH] test: skip if ldd command not found Prompted by #28015. --- src/test/test-execute.c | 5 +++++ 1 file changed, 5 insertions(+) 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__); -- 2.47.3