Fixed #4013 (Several test failures in testcmdlineparser.cpp)
This commit is contained in:
parent
19fdbf0fd0
commit
3e58472cd3
|
@ -362,6 +362,10 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
|
|||
if (define.find("=") == std::string::npos)
|
||||
define += "=1";
|
||||
|
||||
// DEF= => empty define
|
||||
else if (define.find("=") + 1U == define.size())
|
||||
define.erase(define.size() - 1U);
|
||||
|
||||
if (!_settings->userDefines.empty())
|
||||
_settings->userDefines += ";";
|
||||
_settings->userDefines += define;
|
||||
|
|
|
@ -51,7 +51,7 @@ private:
|
|||
TEST_CASE(defines);
|
||||
TEST_CASE(defines2);
|
||||
TEST_CASE(defines3);
|
||||
//TEST_CASE(defines4);
|
||||
TEST_CASE(defines4);
|
||||
TEST_CASE(enforceLanguage);
|
||||
TEST_CASE(includesnopath);
|
||||
TEST_CASE(includes);
|
||||
|
|
Loading…
Reference in New Issue