mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
convert non-low-level non-google pkg code
to whole-package compilation. R=r OCL=33070 CL=33101
This commit is contained in:
parent
5b62b19d43
commit
b04ac108fd
166 changed files with 305 additions and 2917 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue