tests/smoke/blt_gtest_smoke.cpp
//------------------------------------------------------------------------------
// Tests the gtest death test feature, which are disabled by default.
//
// Exits program with non-zero exit code, passing the test.
// Note: To enable death tests, configure BLT with ENABLE_GTEST_DEATH_TESTS.
//------------------------------------------------------------------------------
Tests the gtest death test feature, which are disabled by default.
Exits program with non-zero exit code, passing the test.
Note: To enable death tests, configure BLT with ENABLE_GTEST_DEATH_TESTS.
Tests the gtest death test feature which are disabled by default . Exits program with non - zero exit code passing the test . Note : To enable death tests configure BLT with ENABLE_GTEST_DEATH_TESTS .
TEST(blt_gtest_smoke,death_test)
{
  #if (GTEST_HAS_DEATH_TEST == 0)
  std::cout <<"Note: Death tests disabled in this configuration." << std::endl;
  #endif
  ::testing::FLAGS_gtest_death_test_style = "threadsafe";
  EXPECT_DEATH_IF_SUPPORTED( exit(1), "");
}
TEST ( blt_gtest_smoke , death_test ) { #if ( GTEST_HAS_DEATH_TEST == 0 ) std :: cout << " " << std :: endl ; #endif :: testing :: FLAGS_gtest_death_test_style = " " ; EXPECT_DEATH_IF_SUPPORTED ( exit ( 1 ) , " " ) ; }
Tests the gtest death test feature, which are disabled by default.
Tests the gtest death test feature which are disabled by default .
// Invoke death test function whether death tests enabled or disabled.