For some reason signal_cgo_test.go needs to run an interactive shell, but suppresses reading the startup files. This causes the shell history file to be clobbered, by using different history settings than usual. Avoid that by setting HOME to / so that the shell cannot write a history file.
* libgo/go/os/signal/signal_cgo_test.go: Set HOME to / before starting shell. --- libgo/go/os/signal/signal_cgo_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/libgo/go/os/signal/signal_cgo_test.go b/libgo/go/os/signal/signal_cgo_test.go index 84a2a08ce9..3c127378d2 100644 --- a/libgo/go/os/signal/signal_cgo_test.go +++ b/libgo/go/os/signal/signal_cgo_test.go @@ -88,6 +88,7 @@ func TestTerminalSignal(t *testing.T) { // Start an interactive shell. ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) defer cancel() + os.Setenv("HOME", "/") cmd := exec.CommandContext(ctx, bash, "--norc", "--noprofile", "-i") cmd.Stdin = slave cmd.Stdout = slave -- 2.17.0 -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."