]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: skip the gdb test if -iex is not supported
authorShenghou Ma <minux@golang.org>
Fri, 6 Feb 2015 19:33:44 +0000 (14:33 -0500)
committerMinux Ma <minux@golang.org>
Fri, 6 Feb 2015 19:43:55 +0000 (19:43 +0000)
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>
src/runtime/runtime-gdb_test.go

index 7540fbfabc43a5d9b658bd1535759f96ff9b5074..4911dc000d6c77ed665931a8446ffb20be927877 100644 (file)
@@ -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 {