Browse Source

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

Francis Dupont 8 years ago
parent
commit
b89aa3b43b
1 changed files with 1 additions and 23 deletions
  1. 1 23
      src/bin/lfc/tests/lfc_controller_unittests.cc

+ 1 - 23
src/bin/lfc/tests/lfc_controller_unittests.cc

@@ -145,29 +145,7 @@ TEST_F(LFCControllerTest, initialValues) {
     EXPECT_TRUE(lfc_controller.getPidFile().empty());
     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.
 /// @brief Verify that parsing a full command line works.
 /// Parse a complete command line then verify the parsed
 /// Parse a complete command line then verify the parsed