summaryrefslogtreecommitdiff
path: root/src/lib/exec_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-03-05 13:35:45 -0800
committerRuss Cox <rsc@golang.org>2009-03-05 13:35:45 -0800
commit87b2d90b9c3472648bd82625e2450c8fdfe60977 (patch)
tree82a6e05b8511edf20b3fd5e8002c976d5f9a5b19 /src/lib/exec_test.go
parentef6e0cefc5a2a399f216f4bc2d7998f27a607044 (diff)
downloadgolang-87b2d90b9c3472648bd82625e2450c8fdfe60977.tar.gz
misc doc
R=r DELTA=50 (28 added, 0 deleted, 22 changed) OCL=25763 CL=25770
Diffstat (limited to 'src/lib/exec_test.go')
-rw-r--r--src/lib/exec_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/exec_test.go b/src/lib/exec_test.go
index 54d483799..f4038fbc2 100644
--- a/src/lib/exec_test.go
+++ b/src/lib/exec_test.go
@@ -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);