aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/chan_test.go
diff options
context:
space:
mode:
authorLynn Boger <laboger@linux.vnet.ibm.com>2017-10-02 16:40:38 -0400
committerLynn Boger <laboger@linux.vnet.ibm.com>2017-10-03 12:26:42 +0000
commitf47c8f130e4f5642cda5ee98741c2de25fde8b7e (patch)
treea7bb9eefca54e1b9abce54fbc0492681a74c141d /src/runtime/chan_test.go
parent41eabc0fc7cc9bc40a66dd0edd0ae676c8965ec9 (diff)
downloadgo-f47c8f130e4f5642cda5ee98741c2de25fde8b7e.tar.gz
go-f47c8f130e4f5642cda5ee98741c2de25fde8b7e.zip
runtime: skip test that intermittently hangs on ppc64le
A new testcase TestSelectFairness was recently added, and since then the ppc64le build tests have intermittently failed. This adds a change to skip this test on ppc64le using SkipFlaky to help determine if the problem is with the test or something else with that commit. Updates #22047 Change-Id: Idfef72ed791c5bd45c42ff180947fea3df280ea7 Reviewed-on: https://go-review.googlesource.com/67631 Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/chan_test.go')
-rw-r--r--src/runtime/chan_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/chan_test.go b/src/runtime/chan_test.go
index 69c64b5f37..b6188f5e87 100644
--- a/src/runtime/chan_test.go
+++ b/src/runtime/chan_test.go
@@ -5,6 +5,7 @@
package runtime_test
import (
+ "internal/testenv"
"math"
"runtime"
"sync"
@@ -433,6 +434,9 @@ func TestSelectStress(t *testing.T) {
func TestSelectFairness(t *testing.T) {
const trials = 10000
+ if runtime.GOOS == "linux" && runtime.GOARCH == "ppc64le" {
+ testenv.SkipFlaky(t, 22047)
+ }
c1 := make(chan byte, trials+1)
c2 := make(chan byte, trials+1)
for i := 0; i < trials+1; i++ {