]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: in tests, make sure gdb does not start with a shell
authorCuihtlauac ALVARADO <cuihtlauac.alvarado@orange.com>
Tue, 17 May 2016 07:27:00 +0000 (09:27 +0200)
committerIan Lance Taylor <iant@golang.org>
Wed, 18 May 2016 14:03:22 +0000 (14:03 +0000)
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/23142
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/runtime/runtime-gdb_test.go

index 4f82646dbbe7f7e4c64aa2ebc41e06f48b8ce5b5..0ad88565148d2ee13a98be32893f8c10a79f9c30 100644 (file)
@@ -98,6 +98,7 @@ func TestGdbPython(t *testing.T) {
 
        args := []string{"-nx", "-q", "--batch", "-iex",
                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", "br main.go:10",
                "-ex", "run",
@@ -226,6 +227,7 @@ func TestGdbBacktrace(t *testing.T) {
 
        // Execute gdb commands.
        args := []string{"-nx", "-batch",
+               "-ex", "set startup-with-shell off",
                "-ex", "break main.eee",
                "-ex", "run",
                "-ex", "backtrace",