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

SetUp and TearDown being called twice #80

Open
rafaelBauer opened this issue Sep 8, 2022 · 0 comments
Open

SetUp and TearDown being called twice #80

rafaelBauer opened this issue Sep 8, 2022 · 0 comments

Comments

@rafaelBauer
Copy link
Contributor

rafaelBauer commented Sep 8, 2022

I am aware that with GUnit there is no more need to have the SetUp and TearDown method declarations, but in my tests I still have it for my own organization.

So while using GUnit, I see that the SetUp method is being called twice. Find the stack of the first and second call attached.
image
image

You can see that in the second call the only difference is the extra GTEST<>::TestBody() call.

I see that there is a call in line 247 and 249 of GTest.h. After commenting it stops to call it twice.
I am not very familiar with the internals, is there a reason to call the SetUp and TearDown there?

@rafaelBauer rafaelBauer changed the title SetUp or Test constructor is called twice SetUp and TearDown being called twice Sep 8, 2022
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

No branches or pull requests

1 participant