1
0
mirror of https://github.com/systemd/systemd.git synced 2025-08-25 13:49:55 +03:00

test: don't assume yum is a script

on Rawhide at the moment yum is a symlink to dnf5 which is a binary.
This commit is contained in:
François Rigault
2023-06-24 10:44:54 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent d39cdbb3bf
commit 4b95d5effd

View File

@ -330,7 +330,6 @@ TEST(executable_is_script) {
assert_se(r == 0);
r = executable_is_script("/usr/bin/yum", &command);
assert_se(r > 0 || r == -ENOENT);
if (r > 0) {
assert_se(startswith(command, "/"));
free(command);