# stage2: move call to populateTestFunctions\(\) outside performAllTheWork\(\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/1eeafc39675a349c912910da2a1b70097a934d57)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 1eeafc39675a349c912910da2a1b70097a934d57

Requested commit: 1eeafc39675a349c912910da2a1b70097a934d57

Commit: 1eeafc39675a349c912910da2a1b70097a934d57

Tree: a7fdbc64cd051046d86d3614d90f62ea3eef5af8

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: move call to populateTestFunctions() outside performAllTheWork()

Before calling populateTestFunctions() we want to check
totalErrorCount() but that will read from some tables that might get
populated by the thread pool for C compilation tasks. So we wait until
all those tasks are finished before proceeding.

```

## Parents

- [a8e964eadd3496330043985cacaaee7db92886c6](https://git.cafe/gitcafe/zig/commit/a8e964eadd3496330043985cacaaee7db92886c6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/1eeafc39675a349c912910da2a1b70097a934d57?format=markdown)
