summaryrefslogtreecommitdiff
path: root/tests/misc/chroot-fail.sh
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2014-10-29 14:32:01 +0000
committerPádraig Brady <P@draigBrady.com>2014-10-30 00:06:11 +0000
commit840da8a7c684ee3cf89394435185a978a910b026 (patch)
tree2468d9a36770bdd6435ace07445dc04946179f22 /tests/misc/chroot-fail.sh
parent111a2b91da142bf6fb9edb7836c1979ba698cf6e (diff)
downloadcoreutils-840da8a7c684ee3cf89394435185a978a910b026.tar.xz
maint: tests: fix comments about retry_delay_
* tests/tail-2/F-vs-missing.sh: Comment with the correct total delay. * tests/tail-2/F-vs-rename.shi: Likewise. * tests/tail-2/flush-initial.sh: Likewise. * tests/tail-2/inotify-hash-abuse.sh: Likewise. * tests/tail-2/pipe-f2.sh: Likewise. * tests/misc/chroot-fail.sh: Initialize can_chroot_root in all cases.
Diffstat (limited to 'tests/misc/chroot-fail.sh')
-rwxr-xr-xtests/misc/chroot-fail.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/misc/chroot-fail.sh b/tests/misc/chroot-fail.sh
index 75f724a87..29006e07f 100755
--- a/tests/misc/chroot-fail.sh
+++ b/tests/misc/chroot-fail.sh
@@ -40,6 +40,7 @@ if chroot / true ; then
test $? = 127 || fail=1
else
test $? = 125 || fail=1
+ can_chroot_root=0
fi
# Ensure that --skip-chdir fails with a non-"/" argument.
@@ -52,7 +53,7 @@ compare /dev/null out || fail=1
compare exp err || fail=1
# Ensure we chdir("/") appropriately when NEWROOT is old "/".
-if test "$can_chroot_root"; then
+if test $can_chroot_root = 1; then
ln -s / isroot || framework_failure_
for dir in '/' '/.' '/../' isroot; do
# Verify that chroot(1) succeeds and performs chdir("/")