diff options
Diffstat (limited to 'tests/check')
-rw-r--r-- | tests/check/elements/glimagesink.c | 10 | ||||
-rw-r--r-- | tests/check/generic/states.c | 23 |
2 files changed, 31 insertions, 2 deletions
diff --git a/tests/check/elements/glimagesink.c b/tests/check/elements/glimagesink.c index 702cb0a61..07f6899d3 100644 --- a/tests/check/elements/glimagesink.c +++ b/tests/check/elements/glimagesink.c @@ -233,4 +233,12 @@ glimagesink_suite (void) return s; } -GST_CHECK_MAIN (glimagesink) +int +main (int argc, char **argv) +{ + Suite *s; + g_setenv ("GST_GL_XINITTHREADS", "1", TRUE); + gst_check_init (&argc, &argv); + s = glimagesink_suite (); + return gst_check_run_suite (s, "glimagesink", __FILE__); +} diff --git a/tests/check/generic/states.c b/tests/check/generic/states.c index e4a41cdaf..5df302445 100644 --- a/tests/check/generic/states.c +++ b/tests/check/generic/states.c @@ -26,6 +26,9 @@ #include <unistd.h> +#include <glib.h> +#include <glib/gprintf.h> +#include <gmodule.h> #include <gst/check/gstcheck.h> static GList *elements = NULL; @@ -235,4 +238,22 @@ states_suite (void) return s; } -GST_CHECK_MAIN (states); +int +main (int argc, char **argv) +{ + Suite *s; + GModule *libx11; + + libx11 = + g_module_open ("libX11.so.6", G_MODULE_BIND_LOCAL | G_MODULE_BIND_LAZY); + if (libx11) { + void (*xinitthreads) (void); + if (g_module_symbol (libx11, "XInitThreads", (gpointer *) & xinitthreads)) { + xinitthreads (); + } + g_module_close (libx11); + } + gst_check_init (&argc, &argv); + s = states_suite (); + return gst_check_run_suite (s, "states_bad", __FILE__); +} |