aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-01-26 23:53:19 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-01-26 23:53:19 +0000
commitffbdd139751a9aac5a80d2794cf5c830284edf36 (patch)
treea4a03ff94d80d3f2377ff77c1d8bc844673b063c /libgo
parentf7a60085fcc598cbae262e4ccc7fe94e18b8dfc5 (diff)
downloadgcc-ffbdd139751a9aac5a80d2794cf5c830284edf36.zip
gcc-ffbdd139751a9aac5a80d2794cf5c830284edf36.tar.gz
gcc-ffbdd139751a9aac5a80d2794cf5c830284edf36.tar.bz2
netchan: Avoid race condition in test.
Copied from master library. From-SVN: r169311
Diffstat (limited to 'libgo')
-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 2134297..6d7d63f 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.