summaryrefslogtreecommitdiffstats
path: root/Tests/BundleUtilities
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2011-06-01 16:59:34 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2011-06-01 16:59:34 (GMT)
commit8064044c94a7ed8e4b8a699a730ebab1aafd925b (patch)
tree0146444618d91ba0a31271588c1f8efd0bc05f83 /Tests/BundleUtilities
parentf3de459cec78eac3a7081379b6ee9c6cde36bb60 (diff)
downloadCMake-8064044c94a7ed8e4b8a699a730ebab1aafd925b.zip
CMake-8064044c94a7ed8e4b8a699a730ebab1aafd925b.tar.gz
CMake-8064044c94a7ed8e4b8a699a730ebab1aafd925b.tar.bz2
BundleUtilities: Print reason for not loading module.so
Diffstat (limited to 'Tests/BundleUtilities')
-rw-r--r--Tests/BundleUtilities/testbundleutils.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/Tests/BundleUtilities/testbundleutils.cpp b/Tests/BundleUtilities/testbundleutils.cpp
index 87eaae3..77fe4b0 100644
--- a/Tests/BundleUtilities/testbundleutils.cpp
+++ b/Tests/BundleUtilities/testbundleutils.cpp
@@ -16,14 +16,18 @@ int main(int, char**)
#if defined(WIN32)
HANDLE lib = LoadLibraryA("module.dll");
+ if(!lib)
+ {
+ printf("Failed to open module\n");
+ }
#else
void* lib = dlopen("module.so", RTLD_LAZY);
-#endif
-
if(!lib)
{
- printf("Failed to open module\n");
+ printf("Failed to open module\n%s\n", dlerror());
}
+#endif
+
return lib == 0 ? 1 : 0;
}