cat hello.out
ok=false
fi
-rm -rf $d
+rm -rf $d hello.out
TEST go test -cpuprofile leaves binary behind
./testgo test -cpuprofile strings.prof strings || ok=false
rm -rf $d
unset GOPATH
+TEST 'Issue 6480: "go test -c -test.bench=XXX fmt" should not hang'
+if ! ./testgo test -c -test.bench=XXX fmt; then
+ echo build test failed
+ ok=false
+fi
+rm -f fmt.test
+
# clean up
if $started; then stop; fi
rm -rf testdata/bin testdata/bin1
}
// Force benchmarks to run in serial.
- if testBench {
+ if !testC && testBench {
// The first run must wait for all builds.
// Later runs must wait for the previous run's print.
for i, run := range runs {