]> Cypherpunks repositories - gostls13.git/commitdiff
os/signal: disable GNU readline to deflake TestTerminalSignal
authorZeke Lu <lvzecai@gmail.com>
Wed, 28 Sep 2022 05:57:46 +0000 (05:57 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 28 Sep 2022 16:30:21 +0000 (16:30 +0000)
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 <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>

src/os/signal/signal_cgo_test.go

index 67bad66e0b2fa2a838ee0a7c6f2de43762aca6ca..3ce494c5e783478bdfad38f715408e041a6f5b65 100644 (file)
@@ -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