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:
Russ Cox 2009-03-03 08:39:12 -08:00
parent e8b43190bb
commit be2edb5761
100 changed files with 1711 additions and 1710 deletions

View file

@ -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);