Skip to content

test: Use gtest_main only when needed - #1657

Merged
dmah42 merged 3 commits into
google:mainfrom
jmr:test-main
Aug 24, 2023
Merged

dmah42 merged 3 commits into
google:mainfrom
jmr:test-main

Conversation

@jmr

@jmr jmr commented Aug 24, 2023

Copy link
Copy Markdown
Member

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

dmah42 commented Aug 24, 2023

Copy link
Copy Markdown
Member

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