You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the function under test is called directly as an argument in one of the EXPECT_XX() macros and the test fails then the function is called a 2nd time when reporting the test failure:
EXPECT_EQ(1,my_test_func());
Workaround is to call the function under test first:
int result = my_test_func();
EXPECT_EQ(1,result);
The text was updated successfully, but these errors were encountered:
If the function under test is called directly as an argument in one of the
EXPECT_XX()
macros and the test fails then the function is called a 2nd time when reporting the test failure:Workaround is to call the function under test first:
The text was updated successfully, but these errors were encountered: