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

Unified Diff: src/pkg/exec/exec_test.go

Issue 4435059: code review 4435059: syscall: correct Windows CreateProcess input parameters (Closed)
Patch Set: diff -r 79deef5a2706 https://go.googlecode.com/hg/ Created 13 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/cmd/gotest/gotest.go ('k') | src/pkg/syscall/exec_windows.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/exec/exec_test.go
===================================================================
--- a/src/pkg/exec/exec_test.go
+++ b/src/pkg/exec/exec_test.go
@@ -9,19 +9,14 @@
"io/ioutil"
"testing"
"os"
- "runtime"
)
func run(argv []string, stdin, stdout, stderr int) (p *Cmd, err os.Error) {
- if runtime.GOOS == "windows" {
- argv = append([]string{"cmd", "/c"}, argv...)
- }
exe, err := LookPath(argv[0])
if err != nil {
return nil, err
}
- p, err = Run(exe, argv, nil, "", stdin, stdout, stderr)
- return p, err
+ return Run(exe, argv, nil, "", stdin, stdout, stderr)
}
func TestRunCat(t *testing.T) {
« no previous file with comments | « src/cmd/gotest/gotest.go ('k') | src/pkg/syscall/exec_windows.go » ('j') | no next file with comments »

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