summaryrefslogtreecommitdiff
path: root/src/run.bat
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2012-09-20 00:27:23 +0800
committerShenghou Ma <minux.ma@gmail.com>2012-09-20 00:27:23 +0800
commitc9670a0ca0c1dc8acb594303ede72bcd3feae9ef (patch)
tree426cff761ab107d569c03c905096d486fd7c55d3 /src/run.bat
parent713a157a62a043f6a732ad7ad9cd3b6b2358e526 (diff)
downloadgo-c9670a0ca0c1dc8acb594303ede72bcd3feae9ef.tar.gz
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
Diffstat (limited to 'src/run.bat')
-rw-r--r--src/run.bat9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/run.bat b/src/run.bat
index 7f4a68889..4998d815f 100644
--- a/src/run.bat
+++ b/src/run.bat
@@ -70,11 +70,10 @@ if x%CGO_ENABLED% == x0 goto nocgo
::if errorlevel 1 goto fail
::echo.
-:: TODO ..\misc\cgo\stdio
-::echo # ..\misc\cgo\stdio
-::go run %GOROOT%\test\run.go - ..\misc\cgo\stdio
-::if errorlevel 1 goto fail
-::echo.
+echo # ..\misc\cgo\stdio
+go run %GOROOT%\test\run.go - ..\misc\cgo\stdio
+if errorlevel 1 goto fail
+echo.
echo # ..\misc\cgo\test
go test ..\misc\cgo\test