GUnit icon indicating copy to clipboard operation
GUnit copied to clipboard

SetUp and TearDown being called twice

Open rafaelBauer opened this issue 3 years ago • 0 comments

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 avatar Sep 08 '22 15:09 rafaelBauer