mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: skip the gdb test if -iex is not supported
It turns out -iex argument is not supported by all gdb versions, but as we need to add the auto-load safe path before loading the inferior, test -iex support first and skip the test if it's not available. We should still update our builders though. Change-Id: I355697de51baf12162ba6cb82f389dad93f93dc5 Reviewed-on: https://go-review.googlesource.com/4070 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
810a499bda
commit
1b523384dc
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ import (
|
|||
)
|
||||
|
||||
func checkGdbPython(t *testing.T) {
|
||||
cmd := exec.Command("gdb", "-nx", "-q", "--batch", "-ex", "python import sys; print('go gdb python support')")
|
||||
cmd := exec.Command("gdb", "-nx", "-q", "--batch", "-iex", "python import sys; print('go gdb python support')")
|
||||
out, err := cmd.CombinedOutput()
|
||||
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue