Skipped GTests were reported as success when tests where added with gtest_add_tests. This fixes this behaviour. Fixes: #24130
This simply runs a mocked test case which uses the prefix for signaling a skipped test. CTest's output is checked for a skipped test result.