30 #define ROS_ASSERT_ENABLED 34 #include <gtest/gtest.h> 55 EXPECT_DEATH(
doAssert(),
"ASSERTION FAILED");
58 TEST(RosAssert, breakpoint)
60 EXPECT_DEATH(
doBreak(),
"BREAKPOINT HIT");
63 TEST(RosAssert, assertWithMessage)
69 int main(
int argc,
char **argv)
71 testing::InitGoogleTest(&argc, argv);
73 testing::FLAGS_gtest_death_test_style =
"threadsafe";
75 return RUN_ALL_TESTS();
int main(int argc, char **argv)
#define ROS_ASSERT_MSG(cond,...)
Asserts that the provided condition evaluates to true.
#define ROS_ASSERT(cond)
Asserts that the provided condition evaluates to true.
#define ROS_BREAK()
Aborts program execution.