]> go.fuhry.dev Git - fsnotify.git/commitdiff
No "chmod" executable on Windows.
authorChris Howey <chris@howey.me>
Sun, 26 May 2013 13:53:04 +0000 (08:53 -0500)
committerChris Howey <chris@howey.me>
Sun, 26 May 2013 13:53:04 +0000 (08:53 -0500)
fsnotify_test.go

index 3932e128d433727d393f14abacce52121cd76641..4d3d9187062c5a255a96e985343a6100b5f578c2 100644 (file)
@@ -940,8 +940,7 @@ func TestFsnotifyAttrib(t *testing.T) {
                t.Fatalf("Watcher.Watch() failed: %s", err)
        }
 
-       cmd := exec.Command("chmod", "0700", testFile)
-       err = cmd.Run()
+       err = os.Chmod(testFile, 0700)
        if err != nil {
                t.Fatalf("chmod failed: %s", err)
        }