Win32 - warn of extraordinary behaviour with LoadLibrary and long PATHs

Change-Id: I0a8ee157aa548a5b04df67a2355e3f4fd15e84cd
This commit is contained in:
Michael Meeks
2014-05-20 13:38:49 +01:00
parent c1fd24e18f
commit ef02ced3ec

View File

@@ -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