]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: fix test flag
authorKeith Randall <khr@golang.org>
Wed, 25 Apr 2018 18:07:29 +0000 (11:07 -0700)
committerKeith Randall <khr@golang.org>
Thu, 26 Apr 2018 14:14:13 +0000 (14:14 +0000)
Doesn't cause an error, see #25085.
But we should fix it nonetheless.

Change-Id: I7b6799e0a95475202cacefc3a7f02487e61bfd31
Reviewed-on: https://go-review.googlesource.com/109355
Reviewed-by: Heschi Kreinick <heschi@google.com>
src/cmd/link/internal/ld/dwarf_test.go

index d0090bc3fef74821f99015bdbc0f7d465f7d4581..710a796cc0444a0b43703612b07c73a764c844ef 100644 (file)
@@ -819,7 +819,7 @@ func TestRuntimeTypeAttr(t *testing.T) {
        }
 
        // Explicitly test external linking, for dsymutil compatility on Darwin.
-       for _, flags := range []string{"-ldflags=linkmode=internal", "-ldflags=-linkmode=external"} {
+       for _, flags := range []string{"-ldflags=-linkmode=internal", "-ldflags=-linkmode=external"} {
                t.Run("flags="+flags, func(t *testing.T) {
                        if runtime.GOARCH == "ppc64" && strings.Contains(flags, "external") {
                                t.Skip("-linkmode=external not supported on ppc64")