summaryrefslogtreecommitdiff
path: root/src/tests/unit-tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/unit-tests.c')
-rw-r--r--src/tests/unit-tests.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/unit-tests.c b/src/tests/unit-tests.c
index 0ef5aff02..664fb24c5 100644
--- a/src/tests/unit-tests.c
+++ b/src/tests/unit-tests.c
@@ -19,6 +19,8 @@
#include "config.h"
+#include "tests/unit-tests.h"
+
#include <glib.h>
#include <stdlib.h>
@@ -35,6 +37,8 @@
#include "tests/monitor-transform-tests.h"
#include "tests/wayland-unit-tests.h"
+MetaContext *test_context;
+
typedef struct _MetaTestLaterOrderCallbackData
{
GMainLoop *loop; /* Loop to terminate when done. */
@@ -239,6 +243,8 @@ main (int argc, char *argv[])
META_CONTEXT_TEST_FLAG_TEST_CLIENT);
g_assert (meta_context_configure (context, &argc, &argv, NULL));
+ test_context = context;
+
init_tests ();
g_signal_connect (context, "before-tests",