From 6985633bd4bc3006d21ca168623f988956c42c5e Mon Sep 17 00:00:00 2001 From: Chris Howey Date: Sun, 26 May 2013 08:53:04 -0500 Subject: [PATCH] No "chmod" executable on Windows. --- fsnotify_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fsnotify_test.go b/fsnotify_test.go index 3932e12..4d3d918 100644 --- a/fsnotify_test.go +++ b/fsnotify_test.go @@ -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) } -- 2.50.1