libgo: Update to weekly.2012-01-20.
From-SVN: r183540
This commit is contained in:
parent
df1304ee03
commit
af92e38566
198 changed files with 5123 additions and 1951 deletions
|
@ -83,14 +83,15 @@ func TestInotifyClose(t *testing.T) {
|
|||
watcher, _ := NewWatcher()
|
||||
watcher.Close()
|
||||
|
||||
done := false
|
||||
done := make(chan bool)
|
||||
go func() {
|
||||
watcher.Close()
|
||||
done = true
|
||||
done <- true
|
||||
}()
|
||||
|
||||
time.Sleep(50 * time.Millisecond)
|
||||
if !done {
|
||||
select {
|
||||
case <-done:
|
||||
case <-time.After(50 * time.Millisecond):
|
||||
t.Fatal("double Close() test failed: second Close() call didn't return")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue