mirror of
https://github.com/golang/go
synced 2024-11-17 14:24:50 -07:00
os: use t.Fatalf instead of t.Errorf in TestErrProcessDone
If err is non-nil, use t.Fatalf to avoid panic when calling p.Wait().
Change-Id: Ief4e43ba5ad782999063941ed3b12f3fe4d93621
GitHub-Last-Rev: 5d32b3c082
GitHub-Pull-Request: golang/go#61740
Reviewed-on: https://go-review.googlesource.com/c/go/+/515655
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Rob Pike <r@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
6ab8dfbe6b
commit
b55e4a7e26
@ -19,7 +19,7 @@ func TestErrProcessDone(t *testing.T) {
|
||||
|
||||
p, err := StartProcess(testenv.GoToolPath(t), []string{"go"}, &ProcAttr{})
|
||||
if err != nil {
|
||||
t.Errorf("starting test process: %v", err)
|
||||
t.Fatalf("starting test process: %v", err)
|
||||
}
|
||||
p.Wait()
|
||||
if got := p.Signal(Kill); got != ErrProcessDone {
|
||||
|
Loading…
Reference in New Issue
Block a user