aboutsummaryrefslogtreecommitdiffstats
path: root/community/go
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2019-11-01 17:37:02 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2019-11-01 18:14:08 +0000
commita768534b7471a45e098289cfc2096678a0c18f32 (patch)
treedf646bec5d2fca4bdddf86695f91b6cdb70f0d9e /community/go
parent614532c3d03945825150debba48b6bf624b6a634 (diff)
downloadaports-a768534b7471a45e098289cfc2096678a0c18f32.tar.bz2
aports-a768534b7471a45e098289cfc2096678a0c18f32.tar.xz
community/go: disable flaky test 200722
This flaky test fails on s390x due to it taking too long. See [this issue][0] for more details why. [0]:https://github.com/golang/go/issues/20072
Diffstat (limited to 'community/go')
-rw-r--r--community/go/APKBUILD4
-rw-r--r--community/go/disable-flaky-sync-test.patch20
2 files changed, 23 insertions, 1 deletions
diff --git a/community/go/APKBUILD b/community/go/APKBUILD
index 167c855e9e..918045a7c7 100644
--- a/community/go/APKBUILD
+++ b/community/go/APKBUILD
@@ -16,6 +16,7 @@ subpackages="$pkgname-doc"
source="https://golang.org/dl/go${pkgver/_/}.src.tar.gz
default-buildmode-pie.patch
set-external-linker.patch
+ disable-flaky-sync-test.patch
"
case "$CARCH" in
@@ -137,4 +138,5 @@ package() {
sha512sums="0999876f995a3d9189640ce15b496ab72a6273649d27acdc190c1d50b88ab8b7facaabfc832334911d178f0b9a645ea4169716ed5c593a7540b075e6901d51f2 go1.13.3.src.tar.gz
f0c07d9979fc3165fc78158406de8440624b3f2c6f6542c9889c71efbf3d2f02a7ffee27ccba8c2630489895d331b7b9d3a606162134dcb3e8e0b9fc06b529dc default-buildmode-pie.patch
-faf8de430df185842902322f064254f3e9ecee0884b3075b5550c85da15ff61ea6c2bb8d0fb7cf3887abc0e40974bd73ee8f8c14da7f914dde7e9220177c4e2a set-external-linker.patch"
+faf8de430df185842902322f064254f3e9ecee0884b3075b5550c85da15ff61ea6c2bb8d0fb7cf3887abc0e40974bd73ee8f8c14da7f914dde7e9220177c4e2a set-external-linker.patch
+6ce14ca43fd35520e667530af91cfcad8902d635e6dd8c04d19428299b9e29ba049120f5eebbb00717a895f052d1cc40d3f522c090786625cce726715a8218ec disable-flaky-sync-test.patch"
diff --git a/community/go/disable-flaky-sync-test.patch b/community/go/disable-flaky-sync-test.patch
new file mode 100644
index 0000000000..caad66c3df
--- /dev/null
+++ b/community/go/disable-flaky-sync-test.patch
@@ -0,0 +1,20 @@
+diff --git a/src/sync/waitgroup_test.go b/src/sync/waitgroup_test.go
+index 4ab438c..5f4fc80 100644
+--- a/src/sync/waitgroup_test.go
++++ b/src/sync/waitgroup_test.go
+@@ -10,6 +10,7 @@ import (
+ . "sync"
+ "sync/atomic"
+ "testing"
++ "internal/testenv"
+ )
+
+ func testWaitGroup(t *testing.T, wg1 *WaitGroup, wg2 *WaitGroup) {
+@@ -84,6 +85,7 @@ func pollUntilEqual(v *uint32, target uint32) {
+ }
+
+ func TestWaitGroupMisuse2(t *testing.T) {
++ testenv.SkipFlaky(t, 20072)
+ knownRacy(t)
+ if runtime.NumCPU() <= 4 {
+ t.Skip("NumCPU<=4, skipping: this test requires parallelism")