diff options
Diffstat (limited to 'tests/mkdir/p-2')
-rwxr-xr-x | tests/mkdir/p-2 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/mkdir/p-2 b/tests/mkdir/p-2 new file mode 100755 index 000000000..784a1292a --- /dev/null +++ b/tests/mkdir/p-2 @@ -0,0 +1,23 @@ +#!/bin/sh +# Just like p-1, but with TMPDIR=. + +: ${MKDIR=mkdir} + +TMPDIR=. + +if test "$VERBOSE" = yes; then + set -x + $MKDIR --version +fi + +tmp=$TMPDIR/t-mkdir.$$/a/b/c +temp_files=$tmp +rm -rf $temp_files + +$MKDIR --parents $tmp || fail=1 + +test -d $tmp || fail=1 + +rm -rf $temp_files + +exit $fail |