diff options
Diffstat (limited to 'tests/mkdir/concurrent-1')
-rwxr-xr-x | tests/mkdir/concurrent-1 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/mkdir/concurrent-1 b/tests/mkdir/concurrent-1 new file mode 100755 index 000000000..dc6fdf6b0 --- /dev/null +++ b/tests/mkdir/concurrent-1 @@ -0,0 +1,24 @@ +#!/bin/sh + +: ${MKDIR=mkdir} + +# TMPDIR should be an absolute dir for this test. +# FIXME: enforce it +: ${TMPDIR=/tmp} + +if test "$VERBOSE" = yes; then + set -x + $MKDIR --version +fi + +temp_dir=$TMPDIR/t-mkdir.$$ +tmp=$temp_dir/a/b/c +rm -rf $temp_dir + +$MKDIR --parents $tmp || fail=1 + +test -d $tmp || fail=1 + +rm -rf $temp_dir + +exit $fail |