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.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/exec_test.go b/src/lib/exec_test.go
index 740dfa765..54d483799 100644
--- a/src/lib/exec_test.go
+++ b/src/lib/exec_test.go
@@ -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);