Thanks to visit codestin.com
Credit goes to github.com

Skip to content

test: Use gtest_main only when needed #1657

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

Merged
merged 3 commits into from
Aug 24, 2023
Merged

test: Use gtest_main only when needed #1657

merged 3 commits into from
Aug 24, 2023

Conversation

jmr
Copy link
Member

@jmr jmr commented Aug 24, 2023

There are two types of tests. *_gtest.cc files use gtest and
gtest_main. *_test.cc files define their own main.

Only depend on gtest/gtest_main when needed. This is similar
to what CMakeLists.txt does.

jmr added 3 commits August 24, 2023 13:07
There are two types of tests.  `*_gtest.cc` files use `gtest` and
`gtest_main`.  `*_test.cc` files define their own main.

Only depend on `gtest`/`gtest_main` when needed.  This is similar
to what `CMakeLists.txt` does.
@dmah42
Copy link
Member

dmah42 commented Aug 24, 2023

if you'd asked, i would have sworn that i had this in here already.... so weird. thank you!

@dmah42 dmah42 merged commit dfc8a92 into google:main Aug 24, 2023
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.

2 participants