[glom] Added missing file.
- From: Murray Cumming <murrayc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glom] Added missing file.
- Date: Fri, 4 Sep 2009 23:17:35 +0000 (UTC)
commit 81a3324dabdfdacd0f2d183156811f5d621325b5
Author: Murray Cumming <murrayc murrayc com>
Date: Sat Sep 5 01:17:27 2009 +0200
Added missing file.
regression_tests/test_load_python_library.cc | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/regression_tests/test_load_python_library.cc b/regression_tests/test_load_python_library.cc
new file mode 100644
index 0000000..7da5202
--- /dev/null
+++ b/regression_tests/test_load_python_library.cc
@@ -0,0 +1,26 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <dlfcn.h>
+
+int main()
+{
+ // Attempt to dynamically load the python module,
+ // attempting to resolve all symbols immediately:
+ const char* path = "glom/python_embed/python_module/.libs/glom_1_12.so";
+ void* lib = dlopen(path, RTLD_NOW);
+
+ if(!lib)
+ {
+ char *error = dlerror();
+ if(error)
+ {
+ fprintf (stderr, "%s\n", error);
+ }
+
+ return EXIT_FAILURE;
+ }
+ else
+ dlclose(lib);
+
+ return EXIT_SUCCESS;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]