Drop rclcpp remove_ros_arguments_null test case. (#894)

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
This commit is contained in:
Michel Hidalgo 2019-10-17 16:22:57 -03:00 committed by GitHub
parent d83a947c26
commit 658f207dd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,15 +39,6 @@ TEST(TestUtilities, remove_ros_arguments) {
ASSERT_EQ(std::string{"--baz"}, args[3]);
}
TEST(TestUtilities, remove_ros_arguments_null) {
// In the case of a C executable, we would expect to get
// argc=1 and argv = ["process_name"], so this is an invalid input.
ASSERT_THROW(
{
rclcpp::remove_ros_arguments(0, nullptr);
}, rclcpp::exceptions::RCLErrorBase);
}
TEST(TestUtilities, init_with_args) {
const char * const argv[] = {"process_name"};
int argc = sizeof(argv) / sizeof(const char *);