mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
casify, cleanup sys
R=r OCL=22978 CL=22984
This commit is contained in:
parent
ec9f2b0cd4
commit
360962420c
74 changed files with 423 additions and 631 deletions
|
|
@ -34,7 +34,7 @@ func (t *T) Fail() {
|
|||
func (t *T) FailNow() {
|
||||
t.Fail();
|
||||
t.ch <- t;
|
||||
sys.goexit();
|
||||
sys.Goexit();
|
||||
}
|
||||
|
||||
func (t *T) Log(args ...) {
|
||||
|
|
@ -104,7 +104,7 @@ export func Main(tests []Test) {
|
|||
}
|
||||
if !ok {
|
||||
println("FAIL");
|
||||
sys.exit(1);
|
||||
sys.Exit(1);
|
||||
}
|
||||
println("PASS");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue