Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
b006cd9b
Commit
b006cd9b
authored
Jan 05, 2013
by
Dave Cheney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/go: avoid leaking timer if test process failed to start
R=rsc CC=golang-dev
https://golang.org/cl/7034047
parent
4e2aa9bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
test.go
src/cmd/go/test.go
+2
-3
No files found.
src/cmd/go/test.go
View file @
b006cd9b
...
...
@@ -642,8 +642,8 @@ func (b *builder) runTest(a *action) error {
// This is a last-ditch deadline to detect and
// stop wedged test binaries, to keep the builders
// running.
tick
:=
time
.
NewTimer
(
testKillTimeout
)
if
err
==
nil
{
tick
:=
time
.
NewTimer
(
testKillTimeout
)
startSigHandlers
()
done
:=
make
(
chan
error
)
go
func
()
{
...
...
@@ -660,8 +660,7 @@ func (b *builder) runTest(a *action) error {
tick
.
Stop
()
}
out
:=
buf
.
Bytes
()
t1
:=
time
.
Now
()
t
:=
fmt
.
Sprintf
(
"%.3fs"
,
t1
.
Sub
(
t0
)
.
Seconds
())
t
:=
fmt
.
Sprintf
(
"%.3fs"
,
time
.
Since
(
t0
)
.
Seconds
())
if
err
==
nil
{
if
testShowPass
{
a
.
testOutput
.
Write
(
out
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment