go: skip flaky os/exec TestExtraFiles

This seems to only happen on i686 on go 1.11. It also happens on
Debian. For more information:

https://github.com/golang/go/issues/25628
This commit is contained in:
Bob van der Linden 2018-09-15 18:46:18 +02:00
parent b78348d1a4
commit 0bf6b440d9
No known key found for this signature in database
GPG key ID: 2A90361F99CF1795
2 changed files with 16 additions and 0 deletions

View file

@ -125,6 +125,7 @@ stdenv.mkDerivation rec {
./remove-fhs-test-references.patch
./skip-external-network-tests.patch
./skip-nohup-tests.patch
./skip-test-extra-files-on-386.patch
];
postPatch = optionalString stdenv.isDarwin ''

View file

@ -0,0 +1,15 @@
diff --git a/src/os/exec/exec_test.go b/src/os/exec/exec_test.go
index 558345ff63..22129bf022 100644
--- a/src/os/exec/exec_test.go
+++ b/src/os/exec/exec_test.go
@@ -593,6 +593,10 @@ func TestExtraFiles(t *testing.T) {
t.Skipf("skipping test on %q", runtime.GOOS)
}
+ if runtime.GOOS == "linux" && runtime.GOARCH == "386" {
+ t.Skipf("skipping test on %q %q", runtime.GOARCH, runtime.GOOS)
+ }
+
// Ensure that file descriptors have not already been leaked into
// our environment.
if !testedAlreadyLeaked {