]> go.fuhry.dev Git - fsnotify.git/commitdiff
Windows cannot overwrite file on rename.
authorChris Howey <chris@howey.me>
Sun, 26 May 2013 14:12:11 +0000 (09:12 -0500)
committerChris Howey <chris@howey.me>
Sun, 26 May 2013 14:12:11 +0000 (09:12 -0500)
fsnotify_test.go

index 0136bb9d218ec1ed33ef0dba837102b9b5cfb6ad..af6b7ee3656c4663341df9730aa79e6ab76bb3a5 100644 (file)
@@ -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 {