googletest
                                
                                
                                
                                    googletest copied to clipboard
                            
                            
                            
                        Do not run test suite if SetUpTestSuite fails
In the latest 1.11.0 release failed SetUpTestSuite is not ignored anymore, but tests from the suite are still run after it fails.
It is common for tests to rely on something done in SetUpTestSuite, so running tests after it fails causes them to fail anyway or to finish program with segmentation fault. For example:
static void SetUpTestSuite() {
    ...
    ASSERT_EQ(SUCCESS_MACRO, someInitFunc()); //fails
    m_ptr = malloc(size);
    ...
  }
TEST_F(SomeTestSuite, AfterFailedSetup) {
    ...
    m_ptr[N] = ...; //causes segmentation fault
    ...
}
It would be nice to have an opportunity to mark whole test suite as failed if SetUpTestSuite fails and do not run tests from this suite.
Also it'll be cool to support GTEST_SKIP in SetUpTestSuit!
It seems that your case is already fixed upstream: https://godbolt.org/z/xbnGMcMfv