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

Issue 5656048: code review 5656048: runtime, syscall, os/signal: fix windows build (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by brainman
Modified:
13 years, 1 month ago
Reviewers:
CC:
golang-dev, bradfitzgoog
Visibility:
Public.

Description

runtime, syscall, os/signal: fix windows build

Patch Set 1 #

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

Patch Set 3 : diff -r 94cd5e595923 https://go.googlecode.com/hg/ #

Total comments: 8

Patch Set 4 : diff -r 15d7c8abf2ba https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -36 lines) Patch
M src/pkg/net/dial_test.go View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M src/pkg/os/signal/signal_unix.go View 1 1 chunk +1 line, -1 line 0 comments Download
A src/pkg/os/signal/signal_windows_test.go View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
M src/pkg/runtime/os_windows.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/runtime/signal_windows_386.c View 1 1 chunk +0 lines, -6 lines 0 comments Download
M src/pkg/runtime/signal_windows_amd64.c View 1 2 chunks +0 lines, -12 lines 0 comments Download
M src/pkg/runtime/sigqueue.goc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/thread_windows.c View 1 1 chunk +11 lines, -0 lines 0 comments Download
M src/pkg/syscall/syscall_windows.go View 1 3 chunks +16 lines, -2 lines 0 comments Download
M src/pkg/syscall/ztypes_windows.go View 1 1 chunk +31 lines, -13 lines 0 comments Download

Messages

Total messages: 3
brainman
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 1 month ago (2012-02-14 02:18:59 UTC) #1
bradfitzgoog
LGTM http://codereview.appspot.com/5656048/diff/3021/src/pkg/net/dial_test.go File src/pkg/net/dial_test.go (right): http://codereview.appspot.com/5656048/diff/3021/src/pkg/net/dial_test.go#newcode91 src/pkg/net/dial_test.go:91: t.Logf("skipping test on %q; untested.", runtime.GOOS) untested? you ...
13 years, 1 month ago (2012-02-14 02:35:01 UTC) #2
brainman
13 years, 1 month ago (2012-02-14 02:51:46 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=5ddbaedd8223 ***

runtime, syscall, os/signal: fix windows build

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/5656048

http://codereview.appspot.com/5656048/diff/3021/src/pkg/net/dial_test.go
File src/pkg/net/dial_test.go (right):

http://codereview.appspot.com/5656048/diff/3021/src/pkg/net/dial_test.go#newc...
src/pkg/net/dial_test.go:91: t.Logf("skipping test on %q; untested.",
runtime.GOOS)
On 2012/02/14 02:35:02, bradfitzgoog wrote:
> untested? you tested it, and found that it hangs.
> 
> I'd just say
> 
> t.Logf("skipping known-broken test on windows")

Done.

http://codereview.appspot.com/5656048/diff/3021/src/pkg/os/signal/signal_unix.go
File src/pkg/os/signal/signal_unix.go (right):

http://codereview.appspot.com/5656048/diff/3021/src/pkg/os/signal/signal_unix...
src/pkg/os/signal/signal_unix.go:5: // +build darwin freebsd linux netbsd
openbsd windows
On 2012/02/14 02:35:02, bradfitzgoog wrote:
> so much for this filename being _unix.go.  :)

Agreed. I would have suggested to create a shortcut for "unix", but,
unfortunately, the meaning of it varies sometimes.

http://codereview.appspot.com/5656048/diff/3021/src/pkg/os/signal/signal_wind...
File src/pkg/os/signal/signal_windows_test.go (right):

http://codereview.appspot.com/5656048/diff/3021/src/pkg/os/signal/signal_wind...
src/pkg/os/signal/signal_windows_test.go:4: 
On 2012/02/14 02:35:02, bradfitzgoog wrote:
> does _windows_test.go mean the same as _windows.go?
> 

Yes it does.

http://codereview.appspot.com/5656048/diff/3021/src/pkg/os/signal/signal_wind...
src/pkg/os/signal/signal_windows_test.go:20: t.Fatalf("LoadDLL: %s\n", e)
On 2012/02/14 02:35:02, bradfitzgoog wrote:
> we tend to use %v for errors, instead of %s.

Done.
Sign in to reply to this message.

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