And this patch by adds more hurd build tags, this time to test files. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainline.
Ian
Index: gcc/go/gofrontend/MERGE =================================================================== --- gcc/go/gofrontend/MERGE (revision 268459) +++ gcc/go/gofrontend/MERGE (working copy) @@ -1,4 +1,4 @@ -aa860a9ab0d1b60d1f499065a40a11e8a247422f +87dd981901c645a7d54a52c5f4c35caec31a8978 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. Index: libgo/go/cmd/go/go_unix_test.go =================================================================== --- libgo/go/cmd/go/go_unix_test.go (revision 268369) +++ libgo/go/cmd/go/go_unix_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build darwin dragonfly freebsd linux netbsd openbsd solaris +// +build darwin dragonfly freebsd hurd linux netbsd openbsd solaris package main_test Index: libgo/go/internal/poll/export_posix_test.go =================================================================== --- libgo/go/internal/poll/export_posix_test.go (revision 268369) +++ libgo/go/internal/poll/export_posix_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris windows +// +build aix darwin dragonfly freebsd hurd linux nacl netbsd openbsd solaris windows // Export guts for testing on posix. // Since testing imports os and os imports internal/poll, Index: libgo/go/internal/poll/fd_posix_test.go =================================================================== --- libgo/go/internal/poll/fd_posix_test.go (revision 268369) +++ libgo/go/internal/poll/fd_posix_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris windows +// +build aix darwin dragonfly freebsd hurd linux nacl netbsd openbsd solaris windows package poll_test Index: libgo/go/net/addrselect_test.go =================================================================== --- libgo/go/net/addrselect_test.go (revision 268369) +++ libgo/go/net/addrselect_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build darwin dragonfly freebsd linux netbsd openbsd solaris +// +build darwin dragonfly freebsd hurd linux netbsd openbsd solaris package net Index: libgo/go/net/cgo_unix_test.go =================================================================== --- libgo/go/net/cgo_unix_test.go (revision 268369) +++ libgo/go/net/cgo_unix_test.go (working copy) @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. // +build cgo,!netgo -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris +// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris package net Index: libgo/go/net/conf_test.go =================================================================== --- libgo/go/net/conf_test.go (revision 268369) +++ libgo/go/net/conf_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build darwin dragonfly freebsd linux netbsd openbsd solaris +// +build darwin dragonfly freebsd hurd linux netbsd openbsd solaris package net Index: libgo/go/net/dial_unix_test.go =================================================================== --- libgo/go/net/dial_unix_test.go (revision 268369) +++ libgo/go/net/dial_unix_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris +// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris package net Index: libgo/go/net/dnsclient_unix_test.go =================================================================== --- libgo/go/net/dnsclient_unix_test.go (revision 268369) +++ libgo/go/net/dnsclient_unix_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris +// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris package net Index: libgo/go/net/dnsconfig_unix_test.go =================================================================== --- libgo/go/net/dnsconfig_unix_test.go (revision 268369) +++ libgo/go/net/dnsconfig_unix_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris +// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris package net Index: libgo/go/net/main_cloexec_test.go =================================================================== --- libgo/go/net/main_cloexec_test.go (revision 268369) +++ libgo/go/net/main_cloexec_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build dragonfly freebsd linux netbsd openbsd +// +build dragonfly freebsd hurd linux netbsd openbsd package net Index: libgo/go/net/main_unix_test.go =================================================================== --- libgo/go/net/main_unix_test.go (revision 268369) +++ libgo/go/net/main_unix_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris +// +build aix darwin dragonfly freebsd hurd linux nacl netbsd openbsd solaris package net Index: libgo/go/net/nss_test.go =================================================================== --- libgo/go/net/nss_test.go (revision 268369) +++ libgo/go/net/nss_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build darwin dragonfly freebsd linux netbsd openbsd solaris +// +build darwin dragonfly freebsd hurd linux netbsd openbsd solaris package net Index: libgo/go/net/rawconn_unix_test.go =================================================================== --- libgo/go/net/rawconn_unix_test.go (revision 268369) +++ libgo/go/net/rawconn_unix_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris +// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris package net Index: libgo/go/os/env_unix_test.go =================================================================== --- libgo/go/os/env_unix_test.go (revision 268369) +++ libgo/go/os/env_unix_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris +// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris package os_test Index: libgo/go/os/error_unix_test.go =================================================================== --- libgo/go/os/error_unix_test.go (revision 268369) +++ libgo/go/os/error_unix_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd js,wasm linux nacl netbsd openbsd solaris +// +build aix darwin dragonfly freebsd hurd js,wasm linux nacl netbsd openbsd solaris package os_test Index: libgo/go/os/exec/lp_unix_test.go =================================================================== --- libgo/go/os/exec/lp_unix_test.go (revision 268369) +++ libgo/go/os/exec/lp_unix_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris +// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris package exec Index: libgo/go/os/os_unix_test.go =================================================================== --- libgo/go/os/os_unix_test.go (revision 268369) +++ libgo/go/os/os_unix_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris +// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris package os_test Index: libgo/go/os/signal/signal_test.go =================================================================== --- libgo/go/os/signal/signal_test.go (revision 268369) +++ libgo/go/os/signal/signal_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris +// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris package signal Index: libgo/go/runtime/crash_unix_test.go =================================================================== --- libgo/go/runtime/crash_unix_test.go (revision 268369) +++ libgo/go/runtime/crash_unix_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris +// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris package runtime_test Index: libgo/go/runtime/export_unix_test.go =================================================================== --- libgo/go/runtime/export_unix_test.go (revision 268369) +++ libgo/go/runtime/export_unix_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris +// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris package runtime Index: libgo/go/runtime/runtime_unix_test.go =================================================================== --- libgo/go/runtime/runtime_unix_test.go (revision 268369) +++ libgo/go/runtime/runtime_unix_test.go (working copy) @@ -6,7 +6,7 @@ // We need a fast system call to provoke the race, // and Close(-1) is nearly universally fast. -// +build aix darwin dragonfly freebsd linux netbsd openbsd plan9 +// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd plan9 package runtime_test Index: libgo/go/syscall/exec_unix_test.go =================================================================== --- libgo/go/syscall/exec_unix_test.go (revision 268369) +++ libgo/go/syscall/exec_unix_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris +// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris package syscall_test @@ -12,6 +12,7 @@ import ( "os" "os/exec" "os/signal" + "runtime" "syscall" "testing" "unsafe" @@ -162,6 +163,9 @@ func TestPgid(t *testing.T) { } func TestForeground(t *testing.T) { + if runtime.GOOS == "hurd" { + t.Skip("skipping; TestForeground: fails on GNU/Hurd") + } signal.Ignore(syscall.SIGTTIN, syscall.SIGTTOU) tty, err := os.OpenFile("/dev/tty", os.O_RDWR, 0) Index: libgo/go/syscall/mmap_unix_test.go =================================================================== --- libgo/go/syscall/mmap_unix_test.go (revision 268369) +++ libgo/go/syscall/mmap_unix_test.go (working copy) @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build aix darwin dragonfly freebsd linux netbsd openbsd +// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd package syscall_test