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

Issue 5847068: code review 5847068: misc/cgo/stdio: make it work on Windows (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by minux1
Modified:
11 years, 8 months ago
Reviewers:
CC:
brainman, rsc, r, remyoudompheng, golang-dev
Visibility:
Public.

Description

misc/cgo/stdio: make it work on Windows and also test it use a function to get stdout and stderr, instead of depending on a specific libc implementation. also make test/run.go replace \r\n by \n before comparing output. Fixes issue 2121. Part of issue 1741.

Patch Set 1 #

Patch Set 2 : diff -r c47b0caa500e https://code.google.com/p/go/ #

Patch Set 3 : diff -r c47b0caa500e https://code.google.com/p/go/ #

Total comments: 3

Patch Set 4 : diff -r fbc982f5aff1 https://code.google.com/p/go #

Patch Set 5 : diff -r 2d8e9028098e https://code.google.com/p/go/ #

Patch Set 6 : diff -r 2d8e9028098e https://code.google.com/p/go/ #

Patch Set 7 : diff -r 2d8e9028098e https://code.google.com/p/go/ #

Patch Set 8 : diff -r 62f087306b18 https://code.google.com/p/go/ #

Patch Set 9 : diff -r 62f087306b18 https://code.google.com/p/go/ #

Patch Set 10 : diff -r 62f087306b18 https://code.google.com/p/go/ #

Patch Set 11 : diff -r ca5e20f93081 https://code.google.com/p/go/ #

Patch Set 12 : diff -r b0c749cc5654 https://code.google.com/p/go #

Patch Set 13 : diff -r e24d688078cd https://code.google.com/p/go/ #

Patch Set 14 : diff -r e24d688078cd https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -26 lines) Patch
M misc/cgo/stdio/stdio.go View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -4 lines 0 comments Download
R misc/cgo/stdio/stdio_netbsd.go View 1 2 3 4 5 6 7 1 chunk +0 lines, -16 lines 0 comments Download
M src/run.bat View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -5 lines 0 comments Download
M test/run.go View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 26
minux1
Hello alex.brainman@gmail.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
12 years, 2 months ago (2012-03-19 19:04:07 UTC) #1
minux1
PTAL. Forget to add run.bat.
12 years, 2 months ago (2012-03-19 19:08:13 UTC) #2
brainman
http://codereview.appspot.com/5847068/diff/5/misc/cgo/stdio/file.go File misc/cgo/stdio/file.go (right): http://codereview.appspot.com/5847068/diff/5/misc/cgo/stdio/file.go#newcode22 misc/cgo/stdio/file.go:22: // which cgo doesn't like, so write a wrapper ...
12 years, 2 months ago (2012-03-20 00:21:56 UTC) #3
minux1
On 2012/03/20 00:21:56, brainman wrote: > http://codereview.appspot.com/5847068/diff/5/misc/cgo/stdio/file.go#newcode22 > misc/cgo/stdio/file.go:22: // which cgo doesn't like, so ...
12 years, 2 months ago (2012-03-20 17:05:08 UTC) #4
brainman
On 2012/03/20 17:05:08, minux wrote: > > ... Support arbitrary macro definitions would be > ...
12 years, 2 months ago (2012-03-21 03:18:17 UTC) #5
minux1
On Wed, Mar 21, 2012 at 11:18 AM, <alex.brainman@gmail.com> wrote: > > Again, we could ...
12 years, 2 months ago (2012-03-21 07:49:24 UTC) #6
brainman
On 2012/03/21 07:49:24, minux wrote: > > > What about complex ones like /doc/articles/wiki/test.bash? I ...
12 years, 2 months ago (2012-03-21 23:25:55 UTC) #7
minux1
any more thoughts on how to do tests on Windows? should I just write a ...
12 years ago (2012-04-25 08:40:24 UTC) #8
rsc
On Wed, Apr 25, 2012 at 4:40 AM, <minux.ma@gmail.com> wrote: > any more thoughts on ...
12 years ago (2012-05-03 21:49:37 UTC) #9
minux1
PTAL. If this approach is ok, I will try to enable other cgo tests on ...
12 years ago (2012-05-11 18:05:13 UTC) #10
brainman
On 2012/05/11 18:05:13, minux wrote: > PTAL. LGTM. But please wait for rsc. > > ...
12 years ago (2012-05-14 04:27:15 UTC) #11
r
I share your discomfort.
12 years ago (2012-05-14 18:46:20 UTC) #12
minux1
On Tue, May 15, 2012 at 2:46 AM, <r@golang.org> wrote: > I share your discomfort. ...
12 years ago (2012-05-14 18:57:29 UTC) #13
rsc
Can we reuse test/run.go?
12 years ago (2012-05-17 01:41:51 UTC) #14
minux1
On Thu, May 17, 2012 at 9:41 AM, Russ Cox <rsc@golang.org> wrote: > Can we ...
12 years ago (2012-05-18 16:25:16 UTC) #15
minux1
now that CL 6220049 has been submitted, please take another look at this CL. note: ...
11 years, 9 months ago (2012-08-10 03:59:07 UTC) #16
minux1
PTAL. i have to make test/run.go replace \r\n by \n before comparing output, otherwise, the ...
11 years, 9 months ago (2012-08-10 04:45:26 UTC) #17
brainman
On 2012/08/10 04:45:26, minux wrote: > PTAL. > > i have to make test/run.go replace ...
11 years, 9 months ago (2012-08-10 05:29:02 UTC) #18
minux1
On Fri, Aug 10, 2012 at 1:29 PM, <alex.brainman@gmail.com> wrote: > On 2012/08/10 04:45:26, minux ...
11 years, 9 months ago (2012-08-10 11:11:54 UTC) #19
brainman
On 2012/08/10 11:11:54, minux wrote: > > if we define cmpout as comparing textual output, ...
11 years, 9 months ago (2012-08-12 08:22:26 UTC) #20
remyoudompheng
Can we modify the test so that it opens stdout in binary mode on Windows?
11 years, 9 months ago (2012-08-16 06:52:53 UTC) #21
brainman
On 2012/08/16 06:52:53, remyoudompheng wrote: > Can we modify the test so that it opens ...
11 years, 9 months ago (2012-08-16 06:55:50 UTC) #22
minux1
On Thu, Aug 16, 2012 at 2:52 PM, <remyoudompheng@gmail.com> wrote: > Can we modify the ...
11 years, 9 months ago (2012-08-16 07:10:36 UTC) #23
minux1
ping. i need a final say on the test/run.go change.
11 years, 8 months ago (2012-09-03 16:28:13 UTC) #24
rsc
LGTM
11 years, 8 months ago (2012-09-10 15:57:28 UTC) #25
minux1
11 years, 8 months ago (2012-09-19 16:28:25 UTC) #26
*** Submitted as http://code.google.com/p/go/source/detail?r=80ab25ffe4ca ***

misc/cgo/stdio: make it work on Windows and also test it
use a function to get stdout and stderr, instead of depending
on a specific libc implementation.
also make test/run.go replace \r\n by \n before comparing
output.

        Fixes issue 2121.
        Part of issue 1741.

R=alex.brainman, rsc, r, remyoudompheng
CC=golang-dev
http://codereview.appspot.com/5847068
Sign in to reply to this message.

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