Commit 6bb1677f authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 8d58ab5c
...@@ -187,11 +187,13 @@ func verifyInSubprocess(t *testing.T, f func(t *testing.T), targvExtra ...string ...@@ -187,11 +187,13 @@ func verifyInSubprocess(t *testing.T, f func(t *testing.T), targvExtra ...string
stdout := string(bout) stdout := string(bout)
stderr := "" stderr := ""
ecode := 0 ecode := 0
if testing.Verbose() {
t.Logf("stdout:\n%s\n", stdout)
}
if err != nil { if err != nil {
e, ok := err.(*exec.ExitError) e, ok := err.(*exec.ExitError)
if !ok { if !ok {
// e.g. could not respawn at all // e.g. could not respawn at all
t.Log(stdout)
t.Fatal(err) t.Fatal(err)
} }
stderr = string(e.Stderr) stderr = string(e.Stderr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment