R=r
DELTA=50  (28 added, 0 deleted, 22 changed)
OCL=25763
CL=25770
This commit is contained in:
Russ Cox 2009-03-05 13:35:45 -08:00
parent 5b814d02f2
commit 8a7eb77880
3 changed files with 50 additions and 22 deletions

View file

@ -10,8 +10,8 @@ import (
"testing";
)
func TestOpenCmdCat(t *testing.T) {
cmd, err := exec.OpenCmd("/bin/cat", []string{"cat"}, nil,
func TestRunCat(t *testing.T) {
cmd, err := exec.Run("/bin/cat", []string{"cat"}, nil,
exec.Pipe, exec.Pipe, exec.DevNull);
if err != nil {
t.Fatalf("opencmd /bin/cat: %v", err);
@ -31,8 +31,8 @@ func TestOpenCmdCat(t *testing.T) {
}
}
func TestOpenCmdEcho(t *testing.T) {
cmd, err := OpenCmd("/bin/echo", []string{"echo", "hello", "world"}, nil,
func TestRunEcho(t *testing.T) {
cmd, err := Run("/bin/echo", []string{"echo", "hello", "world"}, nil,
exec.DevNull, exec.Pipe, exec.DevNull);
if err != nil {
t.Fatalf("opencmd /bin/echo: %v", err);