GoogleTest: Reports skipped test with gtest_add_tests

Skipped GTests were reported as success when tests where added with gtest_add_tests. This fixes this behaviour.

Fixes: #24130
4 files changed