diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-05-20 13:38:49 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-05-20 14:06:32 +0100 |
commit | ef02ced3ec5e66d5c25de52fc37355ae0f44235e (patch) | |
tree | 879fc9c2ee993b3126e1644f174cd7b61273a447 /sal/cppunittester | |
parent | Add the CoinMP libs (diff) | |
download | core-ef02ced3ec5e66d5c25de52fc37355ae0f44235e.tar.gz core-ef02ced3ec5e66d5c25de52fc37355ae0f44235e.zip |
Win32 - warn of extraordinary behaviour with LoadLibrary and long PATHs
Change-Id: I0a8ee157aa548a5b04df67a2355e3f4fd15e84cd
Diffstat (limited to 'sal/cppunittester')
-rw-r--r-- | sal/cppunittester/cppunittester.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sal/cppunittester/cppunittester.cxx b/sal/cppunittester/cppunittester.cxx index 6e5258bfc31f..7ac8ab5d676c 100644 --- a/sal/cppunittester/cppunittester.cxx +++ b/sal/cppunittester/cppunittester.cxx @@ -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 |