Skip to content

Commit 0c36bf2

Browse files
author
Rodrigo OSORIO
committed
Skip xattr test for cygwin
1 parent 8e1fcb7 commit 0c36bf2

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

testsuite/xattrs.test

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ lnkdir="$tmpdir/lnk"
1010

1111
$RSYNC -VV | grep '"xattrs": true' >/dev/null || test_skipped "Rsync is configured without xattr support"
1212

13+
CYGWIN=0
14+
15+
case "$HOST_OS" in
16+
cygwin*)
17+
CYGWIN=1
18+
esac
19+
1320
case "$HOST_OS" in
1421
darwin*)
1522
xset() {
@@ -80,14 +87,20 @@ echo else >"$fromdir/file2"
8087
echo deep >"$fromdir/foo/file3"
8188
echo normal >"$fromdir/file4"
8289
echo deeper >"$fromdir/foo/bar/file5"
83-
echo longxattrname >"$fromdir/file7"
90+
if [ $CYGWIN -eq 0 ]; then
91+
echo longxattrname >"$fromdir/file7"
92+
fi
8493

8594
makepath "$chkdir/foo"
8695
echo wow >"$chkdir/file1"
8796
cp_touch "$fromdir/foo/file3" "$chkdir/foo"
8897

8998
dirs='foo foo/bar'
90-
files='file0 file1 file2 foo/file3 file4 foo/bar/file5 file7'
99+
files='file0 file1 file2 foo/file3 file4 foo/bar/file5'
100+
if [ $CYGWIN -eq 0 ]
101+
then
102+
files="$files file7"
103+
fi
91104

92105
uid_gid=`"$TOOLDIR/tls" "$fromdir/foo" | sed 's/^.* \([0-9][0-9]*\)\.\([0-9][0-9]*\) .*/\1:\2/'`
93106

@@ -126,14 +139,15 @@ xset user.extra 'remove me' "$chkdir/file1"
126139
xset user.foo 'old foo' "$chkdir/foo/file3"
127140
xset $RUSR.equal 'this long attribute should remain the same and not need to be transferred' "$chkdir/foo/file3"
128141

142+
if [ $CYGWIN -eq 0 ] ; then
129143
# Generate xattr names
130144
SEQ=`seq 1 200`
131145
xset user."`printf -- 'A%0.s' $SEQ`" 'first xattr' file7
132146
xset user."`printf -- 'B%0.s' $SEQ`" 'second xattr' file7
133147
xset user."`printf -- 'C%0.s' $SEQ`" 'third xattr' file7
134148
xset user."`printf -- 'D%0.s' $SEQ`" 'another xattr' file7
135149
xset user."`printf -- 'E%0.s' $SEQ`" 'final xattr' file7
136-
150+
fi
137151

138152
case $0 in
139153
*hlink*)

0 commit comments

Comments
 (0)