summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-05-20 13:38:49 +0100
committerMichael Meeks <michael.meeks@collabora.com>2014-05-20 14:06:32 +0100
commitef02ced3ec5e66d5c25de52fc37355ae0f44235e (patch)
tree879fc9c2ee993b3126e1644f174cd7b61273a447 /sal
parentc1fd24e18fe82e761cfa2a07dc8acf13365dfd81 (diff)
Win32 - warn of extraordinary behaviour with LoadLibrary and long PATHs
Change-Id: I0a8ee157aa548a5b04df67a2355e3f4fd15e84cd
Diffstat (limited to 'sal')
-rw-r--r--sal/cppunittester/cppunittester.cxx8
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