]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fix tests after recent runcon change
authorPádraig Brady <P@draigBrady.com>
Sat, 27 Aug 2022 18:17:27 +0000 (19:17 +0100)
committerPádraig Brady <P@draigBrady.com>
Sat, 27 Aug 2022 18:18:29 +0000 (19:18 +0100)
Following commit v9.1-49-gea3ee6df2

* tests/misc/invalid-opt.pl: Map runcon failure status to 125.
* tests/misc/usage_vs_getopt.sh: Likewise.

tests/misc/invalid-opt.pl
tests/misc/usage_vs_getopt.sh

index 76fa04644c683d4e8a4d82903a015aa7f2644ff7..22a0b41211a53239d2ff9a0ae137ccef079730c9 100755 (executable)
@@ -34,6 +34,7 @@ my %exit_status =
     expr => 0,
     nice => 125,
     nohup => 125,
+    runcon => 125,
     sort => 2,
     stdbuf => 125,
     test => 0,
index a489accb2c106ecde2d486084246a97d9d0b430b..59e9b093e540307af5a97749551b53494f25ba19 100755 (executable)
@@ -26,7 +26,7 @@ checkprg () {
   rcexp=1
   case "$prg" in
     dir | ls | printenv | sort | tty | vdir ) rcexp=2 ;;
-    env | chroot | nice | nohup | stdbuf | timeout ) rcexp=125 ;;
+    env | chroot | nice | nohup | runcon | stdbuf | timeout ) rcexp=125 ;;
   esac
   # Write the pattern for a long, unknown option into a pattern file.
   o='thisoptiondoesnotexist'