]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: don't assume yum is a script
authorFrançois Rigault <frigo@amadeus.com>
Sat, 24 Jun 2023 08:44:54 +0000 (10:44 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 24 Jun 2023 13:41:38 +0000 (07:41 -0600)
on Rawhide at the moment yum is a symlink to dnf5 which is a binary.

src/test/test-fileio.c

index aa5142fcedf5469f8f03d943cd330779446b4ec0..07f4355142575de9db1bc2d9cb6d03a91b6073b6 100644 (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);