]> Cypherpunks repositories - gostls13.git/commit
syscall: export Tc{get,set}pgrp for testing
authorJoel Sing <joel@sing.id.au>
Sat, 16 Mar 2024 14:02:16 +0000 (01:02 +1100)
committerJoel Sing <joel@sing.id.au>
Fri, 22 Mar 2024 04:41:27 +0000 (04:41 +0000)
commitac0b2f95a5f25e9e331352c93e38f9b29bee9ccc
treef07e5dd85b8ba3c7e7379acf8b74c12eaabd9204
parent4f0408a3a205a88624dced4b188e11dd429bc3ad
syscall: export Tc{get,set}pgrp for testing

Provide appropriate implementations of Tc{get,set}pgrp and export
these for use in the TestForeground* tests in exec_unix_test.go.
This avoids calling ioctl via syscall.Syscall on BSDs.

Fixes #59667
Updates #63900

Change-Id: Ice4dcedae1f0931c026bddf33043d3864a52d44e
Reviewed-on: https://go-review.googlesource.com/c/go/+/572155
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Joel Sing <joel@sing.id.au>
src/syscall/exec_aix_test.go
src/syscall/exec_solaris_test.go
src/syscall/exec_unix_test.go
src/syscall/export_bsd_test.go [new file with mode: 0644]
src/syscall/export_darwin_test.go [deleted file]
src/syscall/export_linux_test.go
src/syscall/export_unix_test.go [deleted file]