diff options
Diffstat (limited to 'Tests/BundleUtilities/testbundleutils.cpp')
-rw-r--r-- | Tests/BundleUtilities/testbundleutils.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Tests/BundleUtilities/testbundleutils.cpp b/Tests/BundleUtilities/testbundleutils.cpp new file mode 100644 index 0000000..0b1828f --- /dev/null +++ b/Tests/BundleUtilities/testbundleutils.cpp @@ -0,0 +1,23 @@ + +#include "framework.h" +#include "shared.h" + +#if defined(WIN32) +#include <windows.h> +#else +#include "dlfcn.h" +#endif + +int main(int, char**) +{ + framework(); + shared(); + +#if defined(WIN32) + HANDLE lib = LoadLibraryA("module.dll"); +#else + void* lib = dlopen("module.so", RTLD_LAZY); +#endif + + return lib == 0 ? 1 : 0; +} |