mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
Automated g4 rollback of changelist 25024,
plus significant hand editing.
Back to T{x} for composite literals.
R=r
OCL=25612
CL=25632
This commit is contained in:
parent
e8b43190bb
commit
be2edb5761
100 changed files with 1711 additions and 1710 deletions
|
|
@ -11,7 +11,7 @@ import (
|
|||
)
|
||||
|
||||
func TestOpenCmdCat(t *testing.T) {
|
||||
cmd, err := exec.OpenCmd("/bin/cat", []string("cat"), nil,
|
||||
cmd, err := exec.OpenCmd("/bin/cat", []string{"cat"}, nil,
|
||||
exec.Pipe, exec.Pipe, exec.DevNull);
|
||||
if err != nil {
|
||||
t.Fatalf("opencmd /bin/cat: %v", err);
|
||||
|
|
@ -32,7 +32,7 @@ func TestOpenCmdCat(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestOpenCmdEcho(t *testing.T) {
|
||||
cmd, err := OpenCmd("/bin/echo", []string("echo", "hello", "world"), nil,
|
||||
cmd, err := OpenCmd("/bin/echo", []string{"echo", "hello", "world"}, nil,
|
||||
exec.DevNull, exec.Pipe, exec.DevNull);
|
||||
if err != nil {
|
||||
t.Fatalf("opencmd /bin/echo: %v", err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue