summaryrefslogtreecommitdiff
path: root/libgo/go
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-26 23:53:19 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-26 23:53:19 +0000
commit557cb6c4e022472e063921a772e3a86fbdedb830 (patch)
treea4a03ff94d80d3f2377ff77c1d8bc844673b063c /libgo/go
parent9bd1408ac2de749425ac2a315e3f7d242f583b34 (diff)
downloadgcc-557cb6c4e022472e063921a772e3a86fbdedb830.tar.gz
netchan: Avoid race condition in test.
Copied from master library. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169311 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go')
-rw-r--r--libgo/go/netchan/netchan_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/netchan/netchan_test.go b/libgo/go/netchan/netchan_test.go
index 2134297c40b..6d7d63f9882 100644
--- a/libgo/go/netchan/netchan_test.go
+++ b/libgo/go/netchan/netchan_test.go
@@ -395,7 +395,7 @@ func TestCrossConnect(t *testing.T) {
t.Fatal("new importer:", err)
}
- go crossExport(e1, e2, t)
+ crossExport(e1, e2, t)
crossImport(i1, i2, t)
}
@@ -413,7 +413,7 @@ func crossExport(e1, e2 *Exporter, t *testing.T) {
t.Fatal("exportReceive:", err)
}
- crossLoop("export", s, r, t)
+ go crossLoop("export", s, r, t)
}
// Import side of cross-traffic.