| 1 |
|
| 2 |
|
| 3 |
package rsynctest |
| 4 |
|
| 5 |
import ( |
| 6 |
"os" |
| 7 |
"testing" |
| 8 |
) |
| 9 |
|
| 10 |
func CreateDummyDeviceFiles(t *testing.T, dir string) { |
| 11 |
t.Skip("Windows does not support special files (devices/FIFOs/sockets)") |
| 12 |
} |
| 13 |
|
| 14 |
func VerifyDummyDeviceFiles(t *testing.T, source, dest string) { |
| 15 |
t.Skip("Windows does not support special files (devices/FIFOs/sockets)") |
| 16 |
} |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
func StatUidGid(t *testing.T, fi os.FileInfo) (uid, gid int) { |
| 23 |
t.Fatal("BUG: StatUidGid not skipped on Windows") |
| 24 |
return 0, 0 |
| 25 |
} |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
func ReplaceSymlink(t *testing.T, oldname, newname string) { |
| 32 |
t.Helper() |
| 33 |
if err := os.Remove(newname); err != nil && !os.IsNotExist(err) { |
| 34 |
t.Fatal(err) |
| 35 |
} |
| 36 |
if err := os.Symlink(oldname, newname); err != nil { |
| 37 |
t.Skipf("cannot create symlinks on this Windows host: %v", err) |
| 38 |
} |
| 39 |
} |