From d7e663d909693492e18b5d031e9ddd7e19642621 Mon Sep 17 00:00:00 2001 From: Zeke Lu Date: Wed, 28 Sep 2022 05:57:46 +0000 Subject: [PATCH] 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 --- src/os/signal/signal_cgo_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0