X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/cb984e620e446d879d69a147be1e01f8496dc5c5..f5450e791da9495f8af4c2e27886f037db657b4b:/testsuite/devices.test diff --git a/testsuite/devices.test b/testsuite/devices.test index 7b4577e3..ca186eb7 100644 --- a/testsuite/devices.test +++ b/testsuite/devices.test @@ -16,6 +16,12 @@ set -x 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"