From: Ian Lance Taylor Date: Wed, 26 Jan 2011 23:53:19 +0000 (+0000) Subject: netchan: Avoid race condition in test. X-Git-Tag: releases/gcc-4.6.0~932 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ffbdd139751a9aac5a80d2794cf5c830284edf36;p=thirdparty%2Fgcc.git netchan: Avoid race condition in test. Copied from master library. From-SVN: r169311 --- diff --git a/libgo/go/netchan/netchan_test.go b/libgo/go/netchan/netchan_test.go index 2134297c40b5..6d7d63f98824 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.