Skip to content

Commit

Permalink
Now running tests even with a different DESTDIR works (fixing debian …
Browse files Browse the repository at this point in the history
…buildd test failures, when tests are run without the prior install)
  • Loading branch information
LocutusOfBorg committed Sep 26, 2014
1 parent fe88511 commit 95cd957
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/cppcheckexecutor.cpp
Expand Up @@ -695,10 +695,10 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha
{
Settings& settings = cppcheck.settings();
_settings = &settings;
bool std = (settings.library.load(argv[0], "std.cfg").errorcode == Library::OK);
bool std = (settings.library.load(argv[0], "std.cfg").errorcode == Library::OK || settings.library.load(argv[0], "cfg/std.cfg").errorcode == Library::OK);
bool posix = true;
if (settings.standards.posix)
posix = (settings.library.load(argv[0], "posix.cfg").errorcode == Library::OK);
posix = (settings.library.load(argv[0], "posix.cfg").errorcode == Library::OK || settings.library.load(argv[0], "cfg/posix.cfg").errorcode == Library::OK );

if (!std || !posix) {
const std::list<ErrorLogger::ErrorMessage::FileLocation> callstack;
Expand Down

0 comments on commit 95cd957

Please sign in to comment.