diff options
Diffstat (limited to 'tests/mkdir/p-v')
-rwxr-xr-x | tests/mkdir/p-v | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/mkdir/p-v b/tests/mkdir/p-v index 569e9b072..316c1e939 100755 --- a/tests/mkdir/p-v +++ b/tests/mkdir/p-v @@ -24,7 +24,8 @@ fi . $srcdir/../lang-default . $srcdir/../test-lib.sh -mkdir -pv foo/a/b/c/d >out || exit +fail=0 +mkdir -pv foo/a/b/c/d >out || fail=1 diff - out <<\EOF mkdir: created directory `foo' @@ -33,3 +34,5 @@ mkdir: created directory `foo/a/b' mkdir: created directory `foo/a/b/c' mkdir: created directory `foo/a/b/c/d' EOF + +(exit $fail); exit $fail |