From c825c6d95841bc1e596f0eea2592a5c3620d78ad Mon Sep 17 00:00:00 2001 From: Chris Howey Date: Sun, 26 May 2013 09:12:11 -0500 Subject: [PATCH] Windows cannot overwrite file on rename. --- fsnotify_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fsnotify_test.go b/fsnotify_test.go index 0136bb9..af6b7ee 100644 --- a/fsnotify_test.go +++ b/fsnotify_test.go @@ -780,6 +780,10 @@ func TestFsnotifyRenameToCreate(t *testing.T) { } func TestFsnotifyRenameToOverwrite(t *testing.T) { + switch runtime.GOOS { + case "plan9", "windows": + t.Skipf("Skipping test on %q (os.Rename over existing file does not create event).", runtime.GOOS) + } // Create an fsnotify watcher instance and initialize it watcher, err := NewWatcher() if err != nil { @@ -882,7 +886,6 @@ func TestFsnotifyAttrib(t *testing.T) { if runtime.GOOS == "windows" { t.Skip("Attributes don't work on Windows.") } - // Create an fsnotify watcher instance and initialize it watcher, err := NewWatcher() if err != nil { -- 2.50.1