]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: fix removed-directory test
authorBernhard Voelker <mail@bernhard-voelker.de>
Sat, 23 May 2020 00:46:22 +0000 (02:46 +0200)
committerBernhard Voelker <mail@bernhard-voelker.de>
Sat, 23 May 2020 01:42:24 +0000 (03:42 +0200)
commit9dbaf54eed7ea7051e6344e92e75f9acddb70d96
tree230b132f9e35ee33a23b2d179099507ea07eb919
parent6d0107a37f3b648aa43bf790625dd25f9f8301e7
tests: fix removed-directory test

The previous attempt to skip that test on NFS (commit 4181fc518362)
made the test fail; it introduced two problems:
a) In the good case, i.e., when the subshell returns with exit status 0,
the test ran into framework_failure_.
b) As the subshell also runs with 'set -x', the later comparison of
/dev/null with 'err' would fail.

* tests/ls/removed-directory.sh: Revert to the style without subshell,
and add 'test -d .' to verify that 'ls' can read the removed dir.
tests/ls/removed-directory.sh