Fix loading library when running tests from build directory (#1123)

This commit is contained in:
Paul Fultz II 2018-03-18 00:50:33 -05:00 committed by Daniel Marjamäki
parent ec6133aea2
commit 73ac27cc79
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ extern std::ostringstream output;
#ifdef _WIN32
#define LOAD_LIB_2( LIB, NAME ) { if (((LIB).load("./testrunner", "../cfg/" NAME).errorcode != Library::OK) && ((LIB).load("./testrunner", "cfg/" NAME).errorcode != Library::OK)) { complainMissingLib(NAME); return; } }
#else
#define LOAD_LIB_2( LIB, NAME ) { if ((LIB).load("./testrunner", "cfg/" NAME).errorcode != Library::OK) { complainMissingLib(NAME); return; } }
#define LOAD_LIB_2( LIB, NAME ) { if (((LIB).load("./testrunner", "cfg/" NAME).errorcode != Library::OK) && ((LIB).load("./bin/testrunner", "bin/cfg/" NAME).errorcode != Library::OK)) { complainMissingLib(NAME); return; } }
#endif
#endif