GoogleTest: Accessing GetParam in SetUp if the test is non-parameterised -
i have setup method checks getparam() value. like:
void tests::setup() { if (getparam().data == x) { do_something; } } however, of tests p_tests, , f_tests. f_tests not have parameter, segmentation fault when setup called these tests, getparam().data cannot read!
is there way check test has parameter inside of setup method?
thanks.
Comments
Post a Comment