aboutsummaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/buildinfo/buildinfo_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug/buildinfo/buildinfo_test.go b/src/debug/buildinfo/buildinfo_test.go
index 44d78a6be0..fd31caf135 100644
--- a/src/debug/buildinfo/buildinfo_test.go
+++ b/src/debug/buildinfo/buildinfo_test.go
@@ -124,7 +124,7 @@ func TestReadFile(t *testing.T) {
// build lines are included.
got = goVersionRe.ReplaceAllString(got, "go\tGOVERSION\n")
got = buildRe.ReplaceAllStringFunc(got, func(match string) string {
- if strings.HasPrefix(match, "build\tcompiler\t") {
+ if strings.HasPrefix(match, "build\t-compiler=") {
return match
}
return ""
@@ -163,7 +163,7 @@ func TestReadFile(t *testing.T) {
want: "go\tGOVERSION\n" +
"path\texample.com/m\n" +
"mod\texample.com/m\t(devel)\t\n" +
- "build\tcompiler\tgc\n",
+ "build\t-compiler=gc\n",
},
{
name: "invalid_modules",