Win32 - warn of extraordinary behaviour with LoadLibrary and long PATHs
Change-Id: I0a8ee157aa548a5b04df67a2355e3f4fd15e84cd
This commit is contained in:
@@ -206,6 +206,14 @@ public:
|
|||||||
manager.load(testlib, args);
|
manager.load(testlib, args);
|
||||||
} catch (const CppUnit::DynamicLibraryManagerException &e) {
|
} catch (const CppUnit::DynamicLibraryManagerException &e) {
|
||||||
std::cerr << "DynamicLibraryManagerException: \"" << e.what() << "\"\n";
|
std::cerr << "DynamicLibraryManagerException: \"" << e.what() << "\"\n";
|
||||||
|
#ifdef WIN32
|
||||||
|
const char *pPath = getenv ("PATH");
|
||||||
|
if (pPath && strlen (pPath) > 256)
|
||||||
|
{
|
||||||
|
std::cerr << "Windows has significant build problems with long PATH variables ";
|
||||||
|
std::cerr << "please check your PATH variable and re-autogen.\n";
|
||||||
|
}
|
||||||
|
#endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user