Drop rclcpp remove_ros_arguments_null test case. (#894)
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
This commit is contained in:
parent
d83a947c26
commit
658f207dd8
1 changed files with 0 additions and 9 deletions
|
@ -39,15 +39,6 @@ TEST(TestUtilities, remove_ros_arguments) {
|
||||||
ASSERT_EQ(std::string{"--baz"}, args[3]);
|
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) {
|
TEST(TestUtilities, init_with_args) {
|
||||||
const char * const argv[] = {"process_name"};
|
const char * const argv[] = {"process_name"};
|
||||||
int argc = sizeof(argv) / sizeof(const char *);
|
int argc = sizeof(argv) / sizeof(const char *);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue