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
Try to avoid running on a system that allows us to create devices
[rsync/rsync.git]
/
testsuite
/
devices.test
diff --git
a/testsuite/devices.test
b/testsuite/devices.test
index
7b4577e
..
ca186eb
100644
(file)
--- a/
testsuite/devices.test
+++ b/
testsuite/devices.test
@@
-16,6
+16,12
@@
set -x
fromdir="$scratchdir/from"
todir="$scratchdir/to"
fromdir="$scratchdir/from"
todir="$scratchdir/to"
+case `id -u` in
+'') ;; # If "id" failed, try to continue...
+0) ;;
+*) test_skipped "Rsync won't copy devices unless we're root" ;;
+esac
+
# TODO: Need to test whether hardlinks are possible on this OS/filesystem
mkdir "$fromdir"
# TODO: Need to test whether hardlinks are possible on this OS/filesystem
mkdir "$fromdir"