Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn all unit tests into GTests #687

Merged

Conversation

sethfowler
Copy link
Contributor

This PR accomplishes two things:

(1) All unit tests have been transformed into GTests. Now GTests are the only kind of unit tests we have.
(2) There were some GTest features that were interacting poorly with libgc on Linux systems. In particular, GTest includes its own implementation of TLS, and when pthread support is enabled, that TLS implementation is active and interacts badly with libgc. I also disabled support for SEH just to be cautious, since that feature also enables some threading-related things. We don't need or use either of those features right now, anyway.

The first change, beyond filling us all with that warm sense of satisfaction that always accompanies a completed refactoring, should speed up testing by eliminating the need to link a bunch of test executables. The second should eliminate some intermittent failures that Chris (and perhaps others?) were seeing on Linux.

@sethfowler sethfowler self-assigned this May 31, 2017
@sethfowler sethfowler requested a review from hanw May 31, 2017 01:11
@sethfowler sethfowler merged commit d38a37c into p4lang:master May 31, 2017
@sethfowler sethfowler deleted the seth/turn-all-unit-tests-into-gtests branch May 31, 2017 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants