summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc')
-rwxr-xr-xtests/misc/df6
-rwxr-xr-xtests/misc/truncate-dir-fail2
2 files changed, 3 insertions, 5 deletions
diff --git a/tests/misc/df b/tests/misc/df
index 790309cce..4ebd29b56 100755
--- a/tests/misc/df
+++ b/tests/misc/df
@@ -25,10 +25,8 @@ fi
case `df .` in
*'
-'*)
- fail=0;;
-*)
- fail=1;;
+'*) ;;
+*) fail=1;;
esac
Exit $fail
diff --git a/tests/misc/truncate-dir-fail b/tests/misc/truncate-dir-fail
index 942c6b4cc..d1a67e4ba 100755
--- a/tests/misc/truncate-dir-fail
+++ b/tests/misc/truncate-dir-fail
@@ -9,6 +9,6 @@ fi
. $srcdir/test-lib.sh
# truncate on dir not allowed
-truncate -s+0 . && fail=1 || fail=0
+truncate -s+0 . && fail=1
Exit $fail