Commit 2380a039 authored by Cuihtlauac ALVARADO's avatar Cuihtlauac ALVARADO Committed by Ian Lance Taylor

runtime: in tests, make sure gdb does not start with a shell

On some systems, gdb is set to: "startup-with-shell on". This
breaks runtime_test. This just make sure gdb does not start by
spawning a shell.

Fixes #15354

Change-Id: Ia040931c61dea22f4fdd79665ab9f84835ecaa70
Reviewed-on: https://go-review.googlesource.com/23142Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent c65647d6
...@@ -98,6 +98,7 @@ func TestGdbPython(t *testing.T) { ...@@ -98,6 +98,7 @@ func TestGdbPython(t *testing.T) {
args := []string{"-nx", "-q", "--batch", "-iex", args := []string{"-nx", "-q", "--batch", "-iex",
fmt.Sprintf("add-auto-load-safe-path %s/src/runtime", runtime.GOROOT()), fmt.Sprintf("add-auto-load-safe-path %s/src/runtime", runtime.GOROOT()),
"-ex", "set startup-with-shell off",
"-ex", "info auto-load python-scripts", "-ex", "info auto-load python-scripts",
"-ex", "br main.go:10", "-ex", "br main.go:10",
"-ex", "run", "-ex", "run",
...@@ -226,6 +227,7 @@ func TestGdbBacktrace(t *testing.T) { ...@@ -226,6 +227,7 @@ func TestGdbBacktrace(t *testing.T) {
// Execute gdb commands. // Execute gdb commands.
args := []string{"-nx", "-batch", args := []string{"-nx", "-batch",
"-ex", "set startup-with-shell off",
"-ex", "break main.eee", "-ex", "break main.eee",
"-ex", "run", "-ex", "run",
"-ex", "backtrace", "-ex", "backtrace",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment