summaryrefslogtreecommitdiff
path: root/src/lib/testing/testing.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-05-08 15:21:41 -0700
committerRuss Cox <rsc@golang.org>2009-05-08 15:21:41 -0700
commit1ea895d9a458c9e4a91993924fcd39ce7f1dcabe (patch)
tree5b8c80c41b4110b57cef1a0945350c2caf7557e2 /src/lib/testing/testing.go
parent206ea17d5fe6ad6d6492afe73ec2d72ce399a3fd (diff)
downloadgolang-1ea895d9a458c9e4a91993924fcd39ce7f1dcabe.tar.gz
move things out of sys into os and runtime
R=r OCL=28569 CL=28573
Diffstat (limited to 'src/lib/testing/testing.go')
-rw-r--r--src/lib/testing/testing.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/testing/testing.go b/src/lib/testing/testing.go
index 2f717d0e9..63e4af5e9 100644
--- a/src/lib/testing/testing.go
+++ b/src/lib/testing/testing.go
@@ -14,6 +14,8 @@ package testing
import (
"flag";
"fmt";
+ "os";
+ "runtime";
)
// Report as tests are run; default is silent for success.
@@ -47,7 +49,7 @@ func (t *T) Fail() {
func (t *T) FailNow() {
t.Fail();
t.ch <- t;
- sys.Goexit();
+ runtime.Goexit();
}
// Log formats its arguments using default formatting, analogous to Print(),
@@ -129,7 +131,7 @@ func Main(tests []Test) {
}
if !ok {
println("FAIL");
- sys.Exit(1);
+ os.Exit(1);
}
println("PASS");
}