summaryrefslogtreecommitdiff
path: root/tests/at-spi2-atk/atk_suite.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/at-spi2-atk/atk_suite.c')
-rw-r--r--tests/at-spi2-atk/atk_suite.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/at-spi2-atk/atk_suite.c b/tests/at-spi2-atk/atk_suite.c
index 02f85917..7132c148 100644
--- a/tests/at-spi2-atk/atk_suite.c
+++ b/tests/at-spi2-atk/atk_suite.c
@@ -53,9 +53,25 @@ atk_suite_build (void)
int
main (int argc, char **argv)
{
+ int init_result;
+
g_test_init (&argc, &argv, NULL);
+ init_result = atspi_init ();
+ if (init_result != 0)
+ {
+ g_error ("Could not initialize atspi, code %d", init_result);
+ }
+
+ fixture_listener_init ();
+
atk_suite_build ();
- return g_test_run ();
+ int result = g_test_run ();
+ g_assert_cmpint (result, ==, 0);
+
+ int leaked = atspi_exit ();
+ g_assert_cmpint (leaked, ==, 0);
+
+ return 0;
}