diff options
Diffstat (limited to 'Tests/BundleUtilities')
-rw-r--r-- | Tests/BundleUtilities/testbundleutils.cpp | 10 |
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; } |