summaryrefslogtreecommitdiff
path: root/tests/mv/mv-special-1
blob: ca8525dcd87b89e04a92d333fa3a01a4bfc1c977 (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
28
29
#! /bin/sh

: ${MV=mv}
: ${RM=rm}
: ${MKNOD=mknod}

. $srcdir/setup

if test -z $other_partition_tmpdir; then
  exit 77
fi

null=.mv-null

test_failure=0

$RM -f $null || test_failure=1
$MKNOD $null p || test_failure=1
if test $test_failure = 1; then
  echo 'failure in testing framework'
  exit 1
fi

fail=0
$MV $null $other_partition_tmpdir || fail=1

$RM -rf $null $other_partition_tmpdir

exit $fail