diff options
| author | Russ Cox <rsc@golang.org> | 2009-08-12 13:18:37 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-08-12 13:18:37 -0700 |
| commit | fc30062047876ed5e09983e0314265811973d2d3 (patch) | |
| tree | fb8ce575f8d1f4edc0212dfd8848524f459c64d5 /src/pkg/sync/mutex_test.go | |
| parent | b1b3e70a5e9acb46914588167a43eea1bba7a529 (diff) | |
| download | golang-fc30062047876ed5e09983e0314265811973d2d3.tar.gz | |
convert low-level (used by testing) packages to
whole-package compilation. new Makefiles,
tests now in separate package
bytes
flag
fmt
io
math
once
os
reflect
strconv
sync
time
utf8
delete import "xxx" in package xxx.
inside package xxx, xxx is not declared
anymore so s/xxx.//g
delete file and package level forward declarations.
note the new internal_test.go and sync
and strconv to provide public access to
internals during testing. the installed version
of the package omits that file and thus does
not open the internals to all clients.
R=r
OCL=33065
CL=33097
Diffstat (limited to 'src/pkg/sync/mutex_test.go')
| -rw-r--r-- | src/pkg/sync/mutex_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/sync/mutex_test.go b/src/pkg/sync/mutex_test.go index 819dbb9de..e1f6a17bd 100644 --- a/src/pkg/sync/mutex_test.go +++ b/src/pkg/sync/mutex_test.go @@ -4,17 +4,17 @@ // GOMAXPROCS=10 gotest -package sync +package sync_test import ( - "sync"; + . "sync"; "testing" ) func HammerSemaphore(s *int32, cdone chan bool) { for i := 0; i < 1000; i++ { - semacquire(s); - semrelease(s); + Semacquire(s); + Semrelease(s); } cdone <- true; } |
