Commit 9a7278ae authored by Jay Conrod's avatar Jay Conrod

cmd/go: fix failure in TestScript/build_runtime_gcflags

This test case failed on the longtest builder. It relied on
runtime/internal/atomic not being compiled with the -l flag in the
cache. The test case now creates its own GOCACHE, similar to
build_cache_compile and a few others.

Also, mention the correct issue the test case verifies.

Fixes #29395

Change-Id: Id50e9dfc50db03fb11582d3dd6b69c3e1ed750eb
Reviewed-on: https://go-review.googlesource.com/c/156237
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent af134b17
# This test verifies the standard library (specifically runtime/internal/atomic) # Set up fresh GOCACHE.
# can be built with -gcflags when -n is given. See golang.org/issue/26092. env GOCACHE=$WORK/gocache
mkdir $GOCACHE
# Verify the standard library (specifically runtime/internal/atomic) can be
# built with -gcflags when -n is given. See golang.org/issue/29346.
go build -n -gcflags=all='-l' std go build -n -gcflags=all='-l' std
stderr 'compile.* -l .* runtime/internal/atomic' stderr 'compile.* -l .* runtime/internal/atomic'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment