Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

date race on mac (TestFsnotifyFakeSymlink) #45

Closed
srid opened this issue May 29, 2013 · 1 comment
Closed

date race on mac (TestFsnotifyFakeSymlink) #45

srid opened this issue May 29, 2013 · 1 comment

Comments

@srid
Copy link

srid commented May 29, 2013

found via Go1.1's go test -race:

=== RUN TestFsnotifyFakeSymlink
==================
WARNING: DATA RACE
Read by goroutine 4:
  github.com/howeyc/fsnotify.TestFsnotifyFakeSymlink()
      /Users/sridharr/go/src/github.com/howeyc/fsnotify/fsnotify_symlink_test.go:76 +0x993
  testing.tRunner()
      /usr/local/Cellar/go/1.1/src/pkg/testing/testing.go:353 +0x12f
  gosched0()
      /usr/local/Cellar/go/1.1/src/pkg/runtime/proc.c:1218 +0x9f

Previous write by goroutine 8:
  github.com/howeyc/fsnotify.func·002()
      /Users/sridharr/go/src/github.com/howeyc/fsnotify/fsnotify_symlink_test.go:46 +0x19d
  gosched0()
      /usr/local/Cellar/go/1.1/src/pkg/runtime/proc.c:1218 +0x9f

Goroutine 4 (running) created at:
  testing.RunTests()
      /usr/local/Cellar/go/1.1/src/pkg/testing/testing.go:433 +0xaef
  testing.Main()
      /usr/local/Cellar/go/1.1/src/pkg/testing/testing.go:365 +0xab
  main.main()
      github.com/howeyc/fsnotify/_test/_testmain.go:63 +0xda
  runtime.main()
      /usr/local/Cellar/go/1.1/src/pkg/runtime/proc.c:182 +0x91

Goroutine 8 (running) created at:
  github.com/howeyc/fsnotify.TestFsnotifyFakeSymlink()
      /Users/sridharr/go/src/github.com/howeyc/fsnotify/fsnotify_symlink_test.go:51 +0x4db
  testing.tRunner()
      /usr/local/Cellar/go/1.1/src/pkg/testing/testing.go:353 +0x12f
  gosched0()
      /usr/local/Cellar/go/1.1/src/pkg/runtime/proc.c:1218 +0x9f
howeyc added a commit that referenced this issue May 29, 2013
@howeyc
Copy link
Owner

howeyc commented May 29, 2013

Thanks for pointing it out.

@howeyc howeyc closed this as completed May 29, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants