allow to define TEST_SRC_DIR as a macro

This commit is contained in:
Sergiu Dotenco 2015-03-26 15:56:33 +01:00 committed by Sergiu Dotenco
parent 3325258036
commit ea628ae809

View File

@ -81,7 +81,7 @@ static inline string GetTempDir() {
#endif
}
#if defined(OS_WINDOWS) && defined(_MSC_VER)
#if defined(OS_WINDOWS) && defined(_MSC_VER) && !defined(TEST_SRC_DIR)
// The test will run in glog/vsproject/<project name>
// (e.g., glog/vsproject/logging_unittest).
static const char TEST_SRC_DIR[] = "../..";