[go] cmd/link: only run ELF tests on ELF systems

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Feb 6, 2026, 6:39:59 PM (2 days ago) Feb 6
to Ian Lance Taylor, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Michael Knyszek, Go LUCI, Cherry Mui, golang-co...@googlegroups.com

Gopher Robot submitted the change with unreviewed changes

Unreviewed changes

4 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:

```
The name of the file: src/cmd/link/internal/ld/elf_test.go
Insertions: 1, Deletions: 1.

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

-//go:build cgo && (dragonfly || freebsd || linux || netbsd || openbsd)
+//go:build cgo && (dragonfly || freebsd || linux || netbsd || openbsd || solaris)

package ld

```

Change information

Commit message:
cmd/link: only run ELF tests on ELF systems

Running these tests on other systems is a pointless waste of time.
This runs cmd/link/internal/ld/elf_test.go in the same cases that
we run cmd/link/elf_test.go.
Change-Id: I318fb5c2de9e4cfdb976bc2389c72cede6661b47
Reviewed-by: Cherry Mui <cher...@google.com>
Reviewed-by: Michael Knyszek <mkny...@google.com>
Auto-Submit: Ian Lance Taylor <ia...@golang.org>
Files:
  • M src/cmd/link/internal/ld/elf_test.go
Change size: S
Delta: 1 file changed, 5 insertions(+), 5 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Cherry Mui, +1 by Michael Knyszek
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I318fb5c2de9e4cfdb976bc2389c72cede6661b47
Gerrit-Change-Number: 740782
Gerrit-PatchSet: 6
Gerrit-Owner: Ian Lance Taylor <ia...@golang.org>
Gerrit-Reviewer: Cherry Mui <cher...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
Gerrit-Reviewer: Michael Knyszek <mkny...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages