summaryrefslogtreecommitdiff
path: root/src/lib/exec_test.go
diff options
context:
space:
mode:
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);