Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(13)

Issue 4968041: code review 4968041: time: fix zone during windows test (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 11 months ago by rsc
Modified:
13 years, 11 months ago
Reviewers:
CC:
brainman, peterGo, mattn, golang-dev
Visibility:
Public.

Description

time: fix zone during windows test Factor out sleep interrupt. Fixes issue 1109.

Patch Set 1 #

Patch Set 2 : diff -r 2ffcdee27931 https://go.googlecode.com/hg #

Patch Set 3 : diff -r 2ffcdee27931 https://go.googlecode.com/hg #

Patch Set 4 : diff -r 6577cd4b870f https://go.googlecode.com/hg #

Patch Set 5 : diff -r 6577cd4b870f https://go.googlecode.com/hg #

Patch Set 6 : diff -r 6577cd4b870f https://go.googlecode.com/hg #

Patch Set 7 : diff -r 6577cd4b870f https://go.googlecode.com/hg #

Total comments: 5

Patch Set 8 : diff -r 7697a84ee19f https://go.googlecode.com/hg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -17 lines) Patch
M src/pkg/Makefile View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/time/Makefile View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
A src/pkg/time/internal_test.go View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M src/pkg/time/sleep_test.go View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M src/pkg/time/sys_plan9.go View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/pkg/time/sys_unix.go View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M src/pkg/time/sys_windows.go View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M src/pkg/time/time_test.go View 1 2 chunks +0 lines, -8 lines 0 comments Download
M src/pkg/time/zoneinfo_plan9.go View 1 1 chunk +16 lines, -0 lines 0 comments Download
M src/pkg/time/zoneinfo_unix.go View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/pkg/time/zoneinfo_windows.go View 1 2 3 4 5 6 3 chunks +43 lines, -1 line 0 comments Download

Messages

Total messages: 28
rsc
Hello brainman (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
13 years, 11 months ago (2011-08-25 16:03:30 UTC) #1
rsc
(Cross-posting from the other discussion.) If someone with a Windows machine in California could run ...
13 years, 11 months ago (2011-08-25 16:05:33 UTC) #2
peterGo
For (UTC-08:00) Pacific Time (US & Canada): syscall.Timezoneinformation{Bias:480, StandardName:[32]uint16{0x50, 0x61, 0x63, 0x69, 0x66, 0x69, 0x63, ...
13 years, 11 months ago (2011-08-25 16:29:59 UTC) #3
rsc
Hello alex.brainman@gmail.com, go.peter.90@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 11 months ago (2011-08-25 16:41:19 UTC) #4
peterGo
8g -o _go_.8 format.go sleep.go sys.go tick.go time.go sys_posix.go zoneinfo_windows.go sys_posix.go:22: undefined: syscall.Kill sys_posix.go:22: undefined: ...
13 years, 11 months ago (2011-08-25 17:04:40 UTC) #5
rsc
Hello alex.brainman@gmail.com, go.peter.90@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 11 months ago (2011-08-25 17:12:39 UTC) #6
rsc
> sys_posix.go:22: undefined: syscall.Kill > sys_posix.go:22: undefined: syscall.SIGCHLD aha! please try again
13 years, 11 months ago (2011-08-25 17:12:44 UTC) #7
peterGo
INSTALL FAIL time make[1]: Entering directory `c:/tzwin/src/pkg/time' make[1]: Leaving directory `c:/tzwin/src/pkg/time' make[1]: *** No rule ...
13 years, 11 months ago (2011-08-25 17:29:17 UTC) #8
rsc
here's sys_windows.go. i think this CL is too complicated for hg clpatch to get right. ...
13 years, 11 months ago (2011-08-25 17:36:42 UTC) #9
peterGo
$ gotest -v rm -f _test/time.a rm -f _test/time.a gopack grc _test/time.a _gotest_.8 === RUN ...
13 years, 11 months ago (2011-08-25 17:59:26 UTC) #10
rsc
Cool, thanks. This is progress. It looks like maybe the Windows time zone code has ...
13 years, 11 months ago (2011-08-25 18:09:32 UTC) #11
peterGo
Right. If you use the abbreviations, everything works. For example, var usPacific = syscall.Timezoneinformation{ Bias: ...
13 years, 11 months ago (2011-08-25 18:22:58 UTC) #12
rsc
On Thu, Aug 25, 2011 at 14:22, <go.peter.90@gmail.com> wrote: > Right. If you use the ...
13 years, 11 months ago (2011-08-25 18:24:48 UTC) #13
peterGo
Submit this CL using the abbreviation and leaving the full name as a comment. It ...
13 years, 11 months ago (2011-08-25 18:49:31 UTC) #14
rsc
On Thu, Aug 25, 2011 at 14:49, <go.peter.90@gmail.com> wrote: > Submit this CL using the ...
13 years, 11 months ago (2011-08-25 18:56:17 UTC) #15
peterGo
On 2011/08/25 18:56:17, rsc wrote: > Maybe the right fix for now is to just ...
13 years, 11 months ago (2011-08-25 19:22:58 UTC) #16
rsc
> You could do that, and document it. The tzdata key and the abbreviated > ...
13 years, 11 months ago (2011-08-25 19:38:37 UTC) #17
peterGo
I'm still having the problem with sys_windows.go. Is sys_posix.Go being renamed before it's copied? Index: ...
13 years, 11 months ago (2011-08-25 20:47:47 UTC) #18
rsc
On Thu, Aug 25, 2011 at 16:47, <go.peter.90@gmail.com> wrote: > I'm still having the problem ...
13 years, 11 months ago (2011-08-25 20:50:01 UTC) #19
peterGo
LGTM C:\tzwin\src\pkg\time>gotest -v rm -f _test/time.a rm -f _test/time.a gopack grc _test/time.a _gotest_.8 === RUN ...
13 years, 11 months ago (2011-08-25 21:28:42 UTC) #20
rsc
yay, thanks On Thu, Aug 25, 2011 at 17:28, <go.peter.90@gmail.com> wrote: > LGTM > > ...
13 years, 11 months ago (2011-08-25 21:31:43 UTC) #21
mattn
rsc, thanks to your CL. http://codereview.appspot.com/4968041/diff/8010/src/pkg/time/sleep_test.go File src/pkg/time/sleep_test.go (right): http://codereview.appspot.com/4968041/diff/8010/src/pkg/time/sleep_test.go#newcode16 src/pkg/time/sleep_test.go:16: const delay = int64(100e6) ...
13 years, 11 months ago (2011-08-26 00:22:20 UTC) #22
brainman
Thank you for fixing this. Add "Fixes issue 1109." to CL description. Also remove "NOTEST+=time" ...
13 years, 11 months ago (2011-08-26 00:25:55 UTC) #23
mattn
> http://codereview.appspot.com/4968041/diff/8010/src/pkg/time/sys_windows.go#newcode21 > src/pkg/time/sys_windows.go:21: func interrupt() { > TestSleep passes on windows now. But interrupt ...
13 years, 11 months ago (2011-08-26 00:34:58 UTC) #24
mattn
I'm finding way to implement to interrupt sleep via interrupt on windows. The candidates for ...
13 years, 11 months ago (2011-08-26 02:50:32 UTC) #25
mattn
rsc I noticed that SleepEx/QueueUserAPC should be called from each other threads. If calling from ...
13 years, 11 months ago (2011-08-26 11:26:42 UTC) #26
rsc
On Thu, Aug 25, 2011 at 20:25, <alex.brainman@gmail.com> wrote: > TestSleep passes on windows now. ...
13 years, 11 months ago (2011-08-26 19:11:48 UTC) #27
rsc
13 years, 11 months ago (2011-08-26 19:15:28 UTC) #28
*** Submitted as http://code.google.com/p/go/source/detail?r=82b14a92e4e9 ***

time: fix zone during windows test
Factor out sleep interrupt.

Fixes issue 1109.

R=alex.brainman, go.peter.90, mattn.jp
CC=golang-dev
http://codereview.appspot.com/4968041
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b