diff options
author | Federico Mena Quintero <federico@gnome.org> | 2022-09-07 19:21:05 -0500 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2023-05-09 10:03:10 -0600 |
commit | 5cec37c70da29509ad7a339f38d9de399a76b810 (patch) | |
tree | f41d6b278f587f5ffb52205adb31d390bfa02d77 /tests/at-spi2-atk/atk_test_collection.c | |
parent | 657f1fe9344f8d59bfdbc35515041395632cb8fa (diff) | |
download | at-spi2-core-5cec37c70da29509ad7a339f38d9de399a76b810.tar.gz |
Replace all the teardown functions with a single one
For the at-spi2-atk tests, we'll move to having a test fixture that
consists of a launched test app with its claimed dbus name. The
teardown step will terminate the test app.
In this commit, terminate_app() is renamed to fixture_teardown(). It
does not use its arguments yet, because it only uses global variables
from atk_test_util.c, but it will soon.
Diffstat (limited to 'tests/at-spi2-atk/atk_test_collection.c')
-rw-r--r-- | tests/at-spi2-atk/atk_test_collection.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/at-spi2-atk/atk_test_collection.c b/tests/at-spi2-atk/atk_test_collection.c index 184a0663..c5837857 100644 --- a/tests/at-spi2-atk/atk_test_collection.c +++ b/tests/at-spi2-atk/atk_test_collection.c @@ -26,12 +26,6 @@ #define DATA_FILE TESTS_DATA_DIR "/test-collection.xml" static void -teardown_collection_test (gpointer fixture, gconstpointer user_data) -{ - terminate_app (); -} - -static void atk_test_collection_get_collection_iface (gpointer fixture, gconstpointer user_data) { AtspiAccessible *obj = get_root_obj (DATA_FILE); @@ -156,11 +150,11 @@ void atk_test_collection (void) { g_test_add_vtable (ATK_TEST_PATH_COLLECTION "/atk_test_collection_get_collection_iface", - 0, NULL, NULL, atk_test_collection_get_collection_iface, teardown_collection_test); + 0, NULL, NULL, atk_test_collection_get_collection_iface, fixture_teardown); g_test_add_vtable (ATK_TEST_PATH_COLLECTION "/atk_test_collection_get_matches", - 0, NULL, NULL, atk_test_collection_get_matches, teardown_collection_test); + 0, NULL, NULL, atk_test_collection_get_matches, fixture_teardown); g_test_add_vtable (ATK_TEST_PATH_COLLECTION "/atk_test_collection_get_matches_to", - 0, NULL, NULL, atk_test_collection_get_matches_to, teardown_collection_test); + 0, NULL, NULL, atk_test_collection_get_matches_to, fixture_teardown); g_test_add_vtable (ATK_TEST_PATH_COLLECTION "/atk_test_collection_get_matches_from", - 0, NULL, NULL, atk_test_collection_get_matches_from, teardown_collection_test); + 0, NULL, NULL, atk_test_collection_get_matches_from, fixture_teardown); } |