Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve error handling and get rid of a lingering fprintf().
[rsync/rsync.git]
/
testsuite
/
chmod-temp-dir.test
diff --git
a/testsuite/chmod-temp-dir.test
b/testsuite/chmod-temp-dir.test
index
e5e6a84
..
bce544c
100644
(file)
--- a/
testsuite/chmod-temp-dir.test
+++ b/
testsuite/chmod-temp-dir.test
@@
-13,12
+13,19
@@
hands_setup
hands_setup
-tmpdir2=/tmp
+tmpdir2=$RSYNC_TEST_TMP
+if [ x"$tmpdir2" = x ]; then
+ tmpdir2=/tmp
+fi
sdev=`$TOOLDIR/getfsdev $scratchdir`
tdev=`$TOOLDIR/getfsdev $tmpdir2`
if [ x$sdev = x$tdev ]; then
tmpdir2=/var/tmp
sdev=`$TOOLDIR/getfsdev $scratchdir`
tdev=`$TOOLDIR/getfsdev $tmpdir2`
if [ x$sdev = x$tdev ]; then
tmpdir2=/var/tmp
- tdev=`$TOOLDIR/getfsdev $tmpdir2`
+ if [ -d $tmpdir2 ]; then
+ tdev=`$TOOLDIR/getfsdev $tmpdir2`
+ else
+ tdev="$sdev"
+ fi
[ x$sdev = x$tdev ] && test_skipped "Can't find a tmp dir on a different file system"
fi
[ x$sdev = x$tdev ] && test_skipped "Can't find a tmp dir on a different file system"
fi