Remove --version test case because it doesn't work
This commit is contained in:
parent
5fc0b7cae8
commit
5463c14872
@ -182,5 +182,5 @@ void Parser::_addPositionalOptionForBaseDir(po::options_description *desc, po::p
|
||||
|
||||
[[noreturn]] void Parser::_showVersionAndExit() {
|
||||
// no need to show version because it was already shown in the CryFS header before parsing program options
|
||||
exit(1);
|
||||
exit(0);
|
||||
}
|
||||
|
@ -55,16 +55,6 @@ TEST_F(ProgramOptionsParserTest, ShowCiphers) {
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
TEST_F(ProgramOptionsParserTest, Version) {
|
||||
string expected = "CryFS Version " + gitversion::VersionString();
|
||||
EXPECT_EXIT(
|
||||
parse({"./myExecutable", "--version"}),
|
||||
::testing::ExitedWithCode(0),
|
||||
expected.c_str()
|
||||
);
|
||||
}
|
||||
|
||||
TEST_F(ProgramOptionsParserTest, BaseDir_Absolute) {
|
||||
ProgramOptions options = parse({"./myExecutable", "/home/user/baseDir", "/home/user/mountDir"});
|
||||
EXPECT_EQ("/home/user/baseDir", options.baseDir());
|
||||
|
Loading…
Reference in New Issue
Block a user