summaryrefslogtreecommitdiff
path: root/tests/mkdir/concurrent-1
blob: dc6fdf6b085401a4468f350c3fe9477b107dc76a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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