aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/exec/exec_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-08-12 13:19:17 -0700
committerRuss Cox <rsc@golang.org>2009-08-12 13:19:17 -0700
commitb04ac108fdede9e5b72f677e9bf10195ffb8280b (patch)
treec9dbc55a8447806706f8ae757a04c3c41b815835 /src/pkg/exec/exec_test.go
parent5b62b19d436de41f77278c7511896a4921f6d040 (diff)
downloadgo-b04ac108fdede9e5b72f677e9bf10195ffb8280b.tar.xz
convert non-low-level non-google pkg code
to whole-package compilation. R=r OCL=33070 CL=33101
Diffstat (limited to 'src/pkg/exec/exec_test.go')
-rw-r--r--src/pkg/exec/exec_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/pkg/exec/exec_test.go b/src/pkg/exec/exec_test.go
index 9a9fca2e7b..d5585029eb 100644
--- a/src/pkg/exec/exec_test.go
+++ b/src/pkg/exec/exec_test.go
@@ -5,14 +5,13 @@
package exec
import (
- "exec";
"io";
"testing";
)
func TestRunCat(t *testing.T) {
- cmd, err := exec.Run("/bin/cat", []string{"cat"}, nil,
- exec.Pipe, exec.Pipe, exec.DevNull);
+ cmd, err := Run("/bin/cat", []string{"cat"}, nil,
+ Pipe, Pipe, DevNull);
if err != nil {
t.Fatalf("opencmd /bin/cat: %v", err);
}
@@ -32,7 +31,7 @@ func TestRunCat(t *testing.T) {
func TestRunEcho(t *testing.T) {
cmd, err := Run("/bin/echo", []string{"echo", "hello", "world"}, nil,
- exec.DevNull, exec.Pipe, exec.DevNull);
+ DevNull, Pipe, DevNull);
if err != nil {
t.Fatalf("opencmd /bin/echo: %v", err);
}