[Libreoffice-commits] core.git: sal/cppunittester

Michael Meeks michael.meeks at collabora.com
Tue May 20 06:08:00 PDT 2014


 sal/cppunittester/cppunittester.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit ef02ced3ec5e66d5c25de52fc37355ae0f44235e
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Tue May 20 13:38:49 2014 +0100

    Win32 - warn of extraordinary behaviour with LoadLibrary and long PATHs
    
    Change-Id: I0a8ee157aa548a5b04df67a2355e3f4fd15e84cd

diff --git a/sal/cppunittester/cppunittester.cxx b/sal/cppunittester/cppunittester.cxx
index 6e5258b..7ac8ab5 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


More information about the Libreoffice-commits mailing list