diff --git a/cmd/cmount/mount_test.go b/cmd/cmount/mount_test.go index ca97f7f28..b6c6baab5 100644 --- a/cmd/cmount/mount_test.go +++ b/cmd/cmount/mount_test.go @@ -25,7 +25,7 @@ func TestDirModTime(t *testing.T) { mounttest.TestDirModTime(t) func TestDirCacheFlush(t *testing.T) { mounttest.TestDirCacheFlush(t) } func TestDirCacheFlushOnDirRename(t *testing.T) { mounttest.TestDirCacheFlushOnDirRename(t) } func TestFileModTime(t *testing.T) { mounttest.TestFileModTime(t) } -func TestFileModTimeWithOpenWriters(t *testing.T) {} // FIXME mounttest.TestFileModTimeWithOpenWriters(t) +func TestFileModTimeWithOpenWriters(t *testing.T) { mounttest.TestFileModTimeWithOpenWriters(t) } func TestMount(t *testing.T) { mounttest.TestMount(t) } func TestRoot(t *testing.T) { mounttest.TestRoot(t) } func TestReadByByte(t *testing.T) { mounttest.TestReadByByte(t) } diff --git a/cmd/mountlib/mounttest/file.go b/cmd/mountlib/mounttest/file.go index b0d03e8a3..722e3ab5c 100644 --- a/cmd/mountlib/mounttest/file.go +++ b/cmd/mountlib/mounttest/file.go @@ -2,6 +2,7 @@ package mounttest import ( "os" + "runtime" "testing" "time" @@ -36,6 +37,9 @@ func osCreate(name string) (*os.File, error) { // TestFileModTimeWithOpenWriters tests mod time on open files func TestFileModTimeWithOpenWriters(t *testing.T) { run.skipIfNoFUSE(t) + if runtime.GOOS == "windows" { + t.Skip("Skipping test on Windows") + } mtime := time.Date(2012, 11, 18, 17, 32, 31, 0, time.UTC) filepath := run.path("cp-archive-test")