summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2016-04-17 13:19:22 +0200
committerBernhard Voelker <mail@bernhard-voelker.de>2016-04-18 23:30:41 +0200
commit85faa0f4364e20284d19aeddcef5084f436f1aec (patch)
tree1f8d9eb7653a0ce5adc3647135d214dc746ea23c /tests
parent9a2e8ac489d7f7b2af4e1468f6174db9106eb9e4 (diff)
downloadcoreutils-85faa0f4364e20284d19aeddcef5084f436f1aec.tar.xz
tests: let mkdir/p-v.sh fail when compare fails
* tests/mkdir/p-v.sh: Set fail=1 when compare fails: the latter only sets a non-Zero return code; evaluating that is up to the caller.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mkdir/p-v.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mkdir/p-v.sh b/tests/mkdir/p-v.sh
index 3b5a13633..0a9004b46 100755
--- a/tests/mkdir/p-v.sh
+++ b/tests/mkdir/p-v.sh
@@ -21,7 +21,7 @@ print_ver_ mkdir
mkdir -pv foo/a/b/c/d >out || fail=1
-compare - out <<\EOF
+compare - out <<\EOF || fail=1
mkdir: created directory 'foo'
mkdir: created directory 'foo/a'
mkdir: created directory 'foo/a/b'