diff options
author | Mattias Andrée <maandree@kth.se> | 2017-10-19 19:38:13 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-10-19 19:38:13 +0200 |
commit | 8366c374fc04e4e6471d627e76a203141450232d (patch) | |
tree | ea248b7079bdf4c2602635c87201d2cd2ec53eba /test | |
parent | Add more tests (diff) | |
download | xtest-2.1.tar.gz xtest-2.1.tar.bz2 xtest-2.1.tar.xz |
Fix test2.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rwxr-xr-x | test | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -37,7 +37,6 @@ simple_test() { simple_test b /dev simple_test c /dev simple_test d /dev -simple_test f /dev mkdir -p .testdir touch .testdir/r .testdir/w .testdir/x .testdir/k .testdir/u .testdir/g .testdir/rw @@ -52,6 +51,9 @@ chmod 600 .testdir/rw ln -s 'non existent file' .testdir/h mkfifo .testdir/p ./mksocket .testdir/S +mkdir -p .testdir/d +simple_test f .testdir +simple_test d .testdir simple_test e .testdir simple_test r .testdir simple_test w .testdir @@ -72,7 +74,7 @@ find .testdir -print0 | ./xtest -0x | tr '\0' '\n' > .testdir/tr diff .testdir/tr .testdir/lf >/dev/null for f in 0 1 2 3 4 5 6 x y z; do - if test $(xtest -t $f | wc -l) = 0; then + if test $(./xtest -t $f | wc -l) = 0; then ! test -t $f else test -t $f |