about summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2017-11-17 18:03:52 +0000
committerOrivej Desh <orivej@gmx.fr>2017-11-17 18:05:30 +0000
commit73598e3787b34385d04e46830e9a7fdf89cc8ede (patch)
treed0d5b48964eec8d64d5b7d375f14204ddcaec444 /pkgs/development/compilers
parent45b6c9c8f112121029dc4173c590eed39a1827cc (diff)
downloadnixlib-73598e3787b34385d04e46830e9a7fdf89cc8ede.tar
nixlib-73598e3787b34385d04e46830e9a7fdf89cc8ede.tar.gz
nixlib-73598e3787b34385d04e46830e9a7fdf89cc8ede.tar.bz2
nixlib-73598e3787b34385d04e46830e9a7fdf89cc8ede.tar.lz
nixlib-73598e3787b34385d04e46830e9a7fdf89cc8ede.tar.xz
nixlib-73598e3787b34385d04e46830e9a7fdf89cc8ede.tar.zst
nixlib-73598e3787b34385d04e46830e9a7fdf89cc8ede.zip
go_1_9: skip flaky TestWaitGroupMisuse2
https://github.com/golang/go/issues/20072
https://hydra.nixos.org/build/64351217/nixlog/1
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/go/1.9.nix1
-rw-r--r--pkgs/development/compilers/go/go-1.9-skip-flaky-20072.patch20
2 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/development/compilers/go/1.9.nix b/pkgs/development/compilers/go/1.9.nix
index b8660008d941..007b81d995b7 100644
--- a/pkgs/development/compilers/go/1.9.nix
+++ b/pkgs/development/compilers/go/1.9.nix
@@ -119,6 +119,7 @@ stdenv.mkDerivation rec {
       ./creds-test.patch
       ./remove-test-pie-1.9.patch
       ./go-1.9-skip-flaky-19608.patch
+      ./go-1.9-skip-flaky-20072.patch
     ];
 
   postPatch = optionalString stdenv.isDarwin ''
diff --git a/pkgs/development/compilers/go/go-1.9-skip-flaky-20072.patch b/pkgs/development/compilers/go/go-1.9-skip-flaky-20072.patch
new file mode 100644
index 000000000000..13db40ababc3
--- /dev/null
+++ b/pkgs/development/compilers/go/go-1.9-skip-flaky-20072.patch
@@ -0,0 +1,20 @@
+diff --git a/src/sync/waitgroup_test.go b/src/sync/waitgroup_test.go
+index e3e3096..f80d1e2 100644
+--- a/src/sync/waitgroup_test.go
++++ b/src/sync/waitgroup_test.go
+@@ -6,6 +6,7 @@ package sync_test
+ 
+ import (
+ 	"internal/race"
++	"internal/testenv"
+ 	"runtime"
+ 	. "sync"
+ 	"sync/atomic"
+@@ -73,6 +74,7 @@ func TestWaitGroupMisuse2(t *testing.T) {
+ 	if runtime.NumCPU() <= 4 {
+ 		t.Skip("NumCPU<=4, skipping: this test requires parallelism")
+ 	}
++	testenv.SkipFlaky(t, 20072)
+ 	defer func() {
+ 		err := recover()
+ 		if err != "sync: negative WaitGroup counter" &&