mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
misc doc
R=r DELTA=50 (28 added, 0 deleted, 22 changed) OCL=25763 CL=25770
This commit is contained in:
parent
5b814d02f2
commit
8a7eb77880
3 changed files with 50 additions and 22 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue