8000 SetUp and TearDown being called twice · Issue #80 · cpp-testing/GUnit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
SetUp and TearDown being called twice #80
Open
@rafaelBauer

Description

@rafaelBauer

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0