summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-10-23 06:59:02 -0600
committerEric Blake <ebb9@byu.net>2009-10-23 16:24:05 -0600
commitb6540b96ba6510af7b2acc6e81bd9d9583f7c96b (patch)
treee67b0b04c62f2318ab15e7628832eba1648dc34b /tests
parent97777f559a80a0de11429402f7dba186eabf5bcd (diff)
downloadcoreutils-b6540b96ba6510af7b2acc6e81bd9d9583f7c96b.tar.xz
chroot, env, nice, su: use EXIT_CANCELED for internal failure
* src/chroot.c (main): Use EXIT_CANCELED, not EXIT_FAILURE. * src/env.c (main): Likewise. * src/nice.c (main): Likewise. * src/su.c (change_identity, main): Likewise. * doc/coreutils.texi (chroot invocation, env invocation) (nice invocation, su invocation): Document this. * NEWS: Likewise. * tests/misc/invalid-opt (exit_status): Adjust expected results. * tests/misc/help-version (expected_failure_status): Likewise.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/misc/help-version4
-rwxr-xr-xtests/misc/invalid-opt4
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/misc/help-version b/tests/misc/help-version
index 9afe8af8b..57cc1e7d3 100755
--- a/tests/misc/help-version
+++ b/tests/misc/help-version
@@ -27,8 +27,12 @@ export SHELL
. $srcdir/test-lib.sh
+expected_failure_status_chroot=125
+expected_failure_status_env=125
+expected_failure_status_nice=125
expected_failure_status_nohup=127
expected_failure_status_stdbuf=125
+expected_failure_status_su=125
expected_failure_status_timeout=125
expected_failure_status_printenv=2
expected_failure_status_tty=3
diff --git a/tests/misc/invalid-opt b/tests/misc/invalid-opt
index 23142bb0b..155ac6e12 100755
--- a/tests/misc/invalid-opt
+++ b/tests/misc/invalid-opt
@@ -28,11 +28,15 @@ my %exit_status =
dir => 2,
vdir => 2,
test => 2,
+ chroot => 125,
echo => 0,
+ env => 125,
expr => 0,
+ nice => 125,
nohup => 127,
sort => 2,
stdbuf => 125,
+ su => 125,
test => 0,
timeout => 125,
true => 0,