We have a test that fails if the test suite is not run with administrator rights. This is expected behavior. However, we want to return something other than success from the test suite so that someone remembers to go back and try the tests again as admin.
Is there a way to tell Google Test that the test hasn't failed, but hasn't really succeeded either?
No, I don't think there is a way to tell GoogleTest that a test has not failed, but has not passed either.
That said, the closest is probably EXPECT, a non-fatal assertion: http://code.google.com/p/googletest/wiki/V1_6_Primer#Assertions
The test will fail, but execution of the test function will continue, which seems to be what you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With