From: Zeke Lu Date: Wed, 28 Sep 2022 05:57:46 +0000 (+0000) Subject: os/signal: disable GNU readline to deflake TestTerminalSignal X-Git-Tag: go1.20rc1~864 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d7e663d909693492e18b5d031e9ddd7e19642621;p=gostls13.git os/signal: disable GNU readline to deflake TestTerminalSignal Fixes #55903. Change-Id: I992865277fb6526929d6c7db2b3b8d22ca0760f2 GitHub-Last-Rev: fc6f28e17c3d6c5f16f1cc047e42ac0ceb60e769 GitHub-Pull-Request: golang/go#55904 Reviewed-on: https://go-review.googlesource.com/c/go/+/435735 Reviewed-by: Bryan Mills TryBot-Result: Gopher Robot Reviewed-by: Michael Pratt Run-TryBot: Bryan Mills Auto-Submit: Bryan Mills --- diff --git a/src/os/signal/signal_cgo_test.go b/src/os/signal/signal_cgo_test.go index 67bad66e0b..3ce494c5e7 100644 --- a/src/os/signal/signal_cgo_test.go +++ b/src/os/signal/signal_cgo_test.go @@ -89,7 +89,7 @@ func TestTerminalSignal(t *testing.T) { // Start an interactive shell. ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) defer cancel() - cmd := exec.CommandContext(ctx, bash, "--norc", "--noprofile", "-i") + cmd := exec.CommandContext(ctx, bash, "--norc", "--noprofile", "--noediting", "-i") // Clear HISTFILE so that we don't read or clobber the user's bash history. cmd.Env = append(os.Environ(), "HISTFILE=") cmd.Stdin = procTTY