diff options
Diffstat (limited to 'src/lib/testing/testing.go')
-rw-r--r-- | src/lib/testing/testing.go | 6 |
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"); } |