mirror of https://github.com/golang/go.git
use replaceEnv
Change-Id: I235ec5a9587218a6d77a5df72c48c568a48901f2
This commit is contained in:
parent
6b2a14a169
commit
60bd64a8fb
|
|
@ -73,7 +73,7 @@ func TestMSAN(t *testing.T) {
|
|||
outPath := dir.Join(name)
|
||||
buildcmd := config.goCmdWithExperiments("build", []string{"-o", outPath, srcPath(tc.src)}, tc.experiments)
|
||||
// allow tests to define -f flags in CGO_CFLAGS
|
||||
buildcmd.Env = append(buildcmd.Environ(), "CGO_CFLAGS_ALLOW=-f.*")
|
||||
replaceEnv(buildcmd, "CGO_CFLAGS_ALLOW", "-f.*")
|
||||
mustRun(t, buildcmd)
|
||||
|
||||
cmd := hangProneCmd(outPath)
|
||||
|
|
|
|||
Loading…
Reference in New Issue