tg.grepStderr("reflect", "did not rebuild reflect")
tg.grepStderr("compile.* -N .*-p reflect", "did not build reflect with -N flag")
tg.grepStderrNot("compile.* -N .*-p fmt", "incorrectly built fmt with -N flag")
+
+ tg.run("test", "-c", "-n", "-gcflags=-N", "strings")
+ tg.grepStderr("compile.* -N .*compare_test.go", "did not build strings_test package with -N flag")
+
+ tg.run("test", "-c", "-n", "-gcflags=strings=-N", "strings")
+ tg.grepStderr("compile.* -N .*compare_test.go", "did not build strings_test package with -N flag")
}
func TestGoTestMinusN(t *testing.T) {
},
Imports: ximports,
RawImports: rawXTestImports,
+
+ Asmflags: p.Internal.Asmflags,
+ Gcflags: p.Internal.Gcflags,
+ Ldflags: p.Internal.Ldflags,
+ Gccgoflags: p.Internal.Gccgoflags,
},
}
if pxtestNeedsPtest {