]> Cypherpunks repositories - gostls13.git/commit
cmd/go: in testsuite, sleep for less than one second if possible
authorIan Lance Taylor <iant@golang.org>
Thu, 11 Jun 2015 17:40:20 +0000 (10:40 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 11 Jun 2015 18:36:37 +0000 (18:36 +0000)
commit9850886fe97ee28b976807f9bec76217662db896
treee0ca50cc77fe10a8fdadae16f6d912dcae094e17
parentd57c889ae8bdfdddbfb242f90b90f649988a720e
cmd/go: in testsuite, sleep for less than one second if possible

Examine the mtime of an existing file to guess a length of time to
sleep to ensure a different mtime.

Change-Id: I9e8b5c9486f5c3c8bd63125e3ed4763ce1ba767d
Reviewed-on: https://go-review.googlesource.com/10932
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/go_test.go