Created
March 29, 2012 09:37
-
-
Save mattn/2235432 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WORK=C:\DOCUME~1\mattn\LOCALS~1\Temp\go-build944877690 | |
mkdir -p $WORK\_\C_\temp\github\fsnotify.go\_test\_\C_\temp\github\ | |
mkdir -p $WORK\_\C_\temp\github\fsnotify.go\_test\ | |
cd C:\temp\github\fsnotify.go | |
c:\go\pkg\tool\windows_386\8g.exe -o $WORK\_\C_\temp\github\fsnotify.go\_test\_go_.8 -p _/C_/temp/github/fsnotify.go -D _/C_/temp/github/fsnotify.go -I $WORK .\fsnotify.go .\fsnotify_windows.go .\fsnotify_test.go | |
c:\go\pkg\tool\windows_386\pack.exe grc $WORK\_\C_\temp\github\fsnotify.go\_test\_\C_\temp\github\fsnotify.go.a $WORK\_\C_\temp\github\fsnotify.go\_test\_go_.8 | |
cd $WORK\_\C_\temp\github\fsnotify.go\_test | |
c:\go\pkg\tool\windows_386\8g.exe -o .\_go_.8 -p testmain -D -I . -I $WORK .\_testmain.go | |
c:\go\pkg\tool\windows_386\pack.exe grc .\main.a .\_go_.8 | |
cd . | |
c:\go\pkg\tool\windows_386\8l.exe -o $WORK\_\C_\temp\github\fsnotify.go\_test\fsnotify.go.test.exe -L $WORK\_\C_\temp\github\fsnotify.go\_test -L $WORK $WORK\_\C_\temp\github\fsnotify.go\_test\main.a | |
$WORK\_\C_\temp\github\fsnotify.go\_test\fsnotify.go.test.exe | |
--- FAIL: TestFsnotifyAttrib (0.72 seconds) | |
fsnotify_test.go:261: event received: "_test/TestFsnotifyEvents.testfile": CREATE | |
fsnotify_test.go:261: event received: "_test/TestFsnotifyEvents.testfile": MODIFY | |
fsnotify_test.go:261: event received: "_test/TestFsnotifyEvents.testfile": MODIFY | |
fsnotify_test.go:261: event received: "_test/TestFsnotifyEvents.testfile": MODIFY | |
fsnotify_test.go:261: event received: "_test/TestFsnotifyEvents.testfile": MODIFY | |
fsnotify_test.go:261: event received: "_test/TestFsnotifyEvents.testfile": MODIFY | |
fsnotify_test.go:297: fsnotify attribute events have not received after 500 ms | |
fsnotify_test.go:261: event received: "_test/TestFsnotifyEvents.testfile": | |
fsnotify_test.go:261: event received: "_test/TestFsnotifyEvents.testfile": DELETE | |
fsnotify_test.go:261: event received: "_test": | |
FAIL | |
FAIL _/C_/temp/github/fsnotify.go 2.706s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/fsnotify_windows.go b/fsnotify_windows.go | |
index e2baca3..3f90aa2 100644 | |
--- a/fsnotify_windows.go | |
+++ b/fsnotify_windows.go | |
@@ -409,7 +409,7 @@ func (w *Watcher) readEvents() { | |
var offset uint32 | |
for { | |
if n == 0 { | |
- w.Event <- &Event{mask: FS_Q_OVERFLOW} | |
+ w.Event <- &FileEvent{mask: FS_Q_OVERFLOW} | |
w.Error <- errors.New("short read in readEvents()") | |
break | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment