|
@@ -125,6 +125,10 @@ func TestCopyFile(t *testing.T) {
|
|
|
|
|
|
// Reading a symlink to a directory must return the directory
|
|
// Reading a symlink to a directory must return the directory
|
|
func TestReadSymlinkedDirectoryExistingDirectory(t *testing.T) {
|
|
func TestReadSymlinkedDirectoryExistingDirectory(t *testing.T) {
|
|
|
|
+ // TODO Windows: Port this test
|
|
|
|
+ if runtime.GOOS == "windows" {
|
|
|
|
+ t.Skip("Needs porting to Windows")
|
|
|
|
+ }
|
|
var err error
|
|
var err error
|
|
if err = os.Mkdir("/tmp/testReadSymlinkToExistingDirectory", 0777); err != nil {
|
|
if err = os.Mkdir("/tmp/testReadSymlinkToExistingDirectory", 0777); err != nil {
|
|
t.Errorf("failed to create directory: %s", err)
|
|
t.Errorf("failed to create directory: %s", err)
|
|
@@ -167,6 +171,10 @@ func TestReadSymlinkedDirectoryNonExistingSymlink(t *testing.T) {
|
|
|
|
|
|
// Reading a symlink to a file must fail
|
|
// Reading a symlink to a file must fail
|
|
func TestReadSymlinkedDirectoryToFile(t *testing.T) {
|
|
func TestReadSymlinkedDirectoryToFile(t *testing.T) {
|
|
|
|
+ // TODO Windows: Port this test
|
|
|
|
+ if runtime.GOOS == "windows" {
|
|
|
|
+ t.Skip("Needs porting to Windows")
|
|
|
|
+ }
|
|
var err error
|
|
var err error
|
|
var file *os.File
|
|
var file *os.File
|
|
|
|
|
|
@@ -301,6 +309,10 @@ func TestMatchesWithMalformedPatterns(t *testing.T) {
|
|
|
|
|
|
// Test lots of variants of patterns & strings
|
|
// Test lots of variants of patterns & strings
|
|
func TestMatches(t *testing.T) {
|
|
func TestMatches(t *testing.T) {
|
|
|
|
+ // TODO Windows: Port this test
|
|
|
|
+ if runtime.GOOS == "windows" {
|
|
|
|
+ t.Skip("Needs porting to Windows")
|
|
|
|
+ }
|
|
tests := []struct {
|
|
tests := []struct {
|
|
pattern string
|
|
pattern string
|
|
text string
|
|
text string
|