8000 walkthrough: children skip the race runtime's exit sleep by twmb · Pull Request #82 · twmb/kcl · GitHub
[go: up one dir, main page]

Skip to content
Merged 8000
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions walkthrough_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,10 @@ func (w *walkthrough) runArgs(t *testing.T, stdin string, full []string) runResu
}
}
cmd.Env = append(cmd.Env, walkthroughEnv+"="+string(enc))
// Under -race the runtime sleeps a second at exit so a last report can
// be written (atexit_sleep_ms); a child that ran one command has no
// report coming, and two hundred of them made the walk take minutes.
cmd.Env = append(cmd.Env, "GORACE=atexit_sleep_ms=0")
cmd.Stdin = strings.NewReader(stdin)
var stdout, stderr bytes.Buffer
cmd.Stdout = &stdout
Expand Down
Loading
0