Compare commits

...

1 Commits

Author SHA1 Message Date
Jose Luis Rivero
cd3e247229 Force segfault to test ament_cmake_test code 2020-05-27 23:54:55 +02:00

View File

@@ -13,6 +13,7 @@
// limitations under the License.
#include <gtest/gtest.h>
#include <signal.h>
#include <algorithm>
#include <limits>
@@ -45,6 +46,10 @@ protected:
}
};
TEST(TestTime, force_segfault) {
raise(SIGSEGV);
}
TEST(TestTime, clock_type_access) {
rclcpp::Clock ros_clock(RCL_ROS_TIME);
EXPECT_EQ(RCL_ROS_TIME, ros_clock.get_clock_type());