1
0
mirror of https://github.com/golang/go synced 2024-11-17 08:04:46 -07:00
go/misc/cgo/test
Dave Cheney d073677569 cgo/misc/test: burn CPU to improve sleep accuracy
Fixes #4008.

Run a background goroutine that wastes CPU to trick the
power management into raising the CPU frequency which,
by side effect, makes sleep more accurate on arm.

=== RUN TestParallelSleep
--- PASS: TestParallelSleep (1.30 seconds)
_cgo_gotypes.go:772:    sleep(1) slept for 1.000458s

R=minux.ma, r
CC=golang-dev
https://golang.org/cl/6498060
2012-08-31 20:17:59 +10:00
..
backdoor all: gofmt -w -s src misc 2012-03-08 10:48:51 -08:00
align.go
basic.go misc/cgo/test: fix darwin build 2012-07-31 20:59:06 +09:00
callback_c.c misc/cgo: re-enable some tests 2012-03-06 23:27:30 -05:00
callback.go misc/cgo: re-enable some tests 2012-03-06 23:27:30 -05:00
cgo_linux_test.go misc/cgo/test: only run setgid test on GNU/Linux 2012-07-28 10:40:51 -07:00
cgo_test.go cmd/ld: handle a special case of scattered relocation 2/1 on Darwin/386 2012-08-29 23:42:05 +08:00
duplicate_symbol.go
env.go
exports.go
helpers.go
issue1222.go
issue1328.go misc/cgo: re-enable some tests 2012-03-06 23:27:30 -05:00
issue1560.go cgo/misc/test: burn CPU to improve sleep accuracy 2012-08-31 20:17:59 +10:00
issue1635.go cmd/ld: handle a special case of scattered relocation 2/1 on Darwin/386 2012-08-29 23:42:05 +08:00
issue2462.go
issue3261.go cmd/go: new cgo build procedure 2012-08-17 03:42:34 +08:00
issue3741.go cmd/cgo: generate definitions for GoSlice 2012-06-30 12:40:07 +08:00
setgid_linux.go misc/cgo/test: only run setgid test on GNU/Linux 2012-07-28 10:40:51 -07:00
sleep_windows_386.go cmd/go: new cgo build procedure 2012-08-17 03:42:34 +08:00