Commit b89aa3b4 authored by Francis Dupont's avatar Francis Dupont
Browse files

[4501] Removed ASSERT_EXIT() stuff (should get a better way)

parent 794ed258
......@@ -145,29 +145,7 @@ TEST_F(LFCControllerTest, initialValues) {
EXPECT_TRUE(lfc_controller.getPidFile().empty());
}
/// @brief Verify that parsing -v/V/W/h works well.
TEST_F(LFCControllerTest, version) {
LFCController lfc_controller;
int argc = 2;
char *argv_v[] = { const_cast<char*>("progName"),
const_cast<char*>("-v") };
char *argv_V[] = { const_cast<char*>("progName"),
const_cast<char*>("-V") };
char *argv_W[] = { const_cast<char*>("progName"),
const_cast<char*>("-W") };
char *argv_h[] = { const_cast<char*>("progName"),
const_cast<char*>("-h") };
ASSERT_EXIT(lfc_controller.parseArgs(argc, argv_v),
::testing::ExitedWithCode(0), "");
ASSERT_EXIT(lfc_controller.parseArgs(argc, argv_V),
::testing::ExitedWithCode(0), "");
ASSERT_EXIT(lfc_controller.parseArgs(argc, argv_W),
::testing::ExitedWithCode(0), "");
ASSERT_EXIT(lfc_controller.parseArgs(argc, argv_h),
::testing::ExitedWithCode(0), "Usage");
}
/// @todo verify that parsing -v/V/W/h works well without ASSERT_EXIT
/// @brief Verify that parsing a full command line works.
/// Parse a complete command line then verify the parsed
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment