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);
|
||||
} catch (const CppUnit::DynamicLibraryManagerException &e) {
|
||||
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;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user