summaryrefslogtreecommitdiff
path: root/tests/mkdir/concurrent-1
blob: 0b1a9ae89b39768042f290c2e6906db39a9704f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

# TMPDIR should be an absolute dir for this test.
# FIXME: enforce it
: ${TMPDIR=/tmp}

if test "$VERBOSE" = yes; then
  set -x
  mkdir --version
fi

pwd=`pwd`
tmp=`echo "$0"|sed 's,.*/,,'`.tmp
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
trap '(exit $?); exit' 1 2 13 15

mkdir --parents $pwd/$tmp/a/b/c || fail=1

test -d $tmp || fail=1

exit $fail