summaryrefslogtreecommitdiff
path: root/tests/rm/f-1
blob: 495bca88e4fffc0d3451029b9444229a4bf37f6b (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
25
26
#!/bin/sh

: ${RM=rm}
test=f-1

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

: ${RM_TMPDIR=.}
tmp=$RM_TMPDIR/t-rm.$$

test_failure=0
mkdir $tmp || test_failure=1

if test $test_failure = 1; then
  echo 'failure in testing framework'
  exit 1
fi

fail=0
$RM -f $tmp/no-such-file || fail=1
rm -rf $tmp

exit $fail