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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -