summaryrefslogtreecommitdiff
path: root/tests/rm/sunos-1
blob: 7a45d1f5139a85d8ba8ff20ca8f3fa0accd72011 (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
27
#!/bin/sh

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

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

tmp=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
cd $tmp
$RM '' > /dev/null 2>&1 && fail=1
cd ..
rm -rf $tmp

exit $fail