diff options
author | Federico Mena Quintero <federico@gnome.org> | 2022-09-07 20:58:46 -0500 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2023-05-09 10:04:25 -0600 |
commit | 11710e04c901d3202e8263e9a1766c7dd7ed23e2 (patch) | |
tree | ab3de9b6cf8c14977a123646c45796b81181c957 | |
parent | 54996d2e517185f1d36deb8a47edb86a14dc09f6 (diff) | |
download | at-spi2-core-11710e04c901d3202e8263e9a1766c7dd7ed23e2.tar.gz |
Don't use a Unix signal handler to kill the test-application if the parent test program aborts
This is super sketchy; moreover, we can rely on the test runner to
kill child processes.
-rw-r--r-- | tests/at-spi2-atk/atk_suite.c | 2 | ||||
-rw-r--r-- | tests/at-spi2-atk/atk_test_util.c | 12 |
2 files changed, 0 insertions, 14 deletions
diff --git a/tests/at-spi2-atk/atk_suite.c b/tests/at-spi2-atk/atk_suite.c index f70e8cb8..02f85917 100644 --- a/tests/at-spi2-atk/atk_suite.c +++ b/tests/at-spi2-atk/atk_suite.c @@ -55,8 +55,6 @@ main (int argc, char **argv) { g_test_init (&argc, &argv, NULL); - clean_exit_on_fail (); - atk_suite_build (); return g_test_run (); diff --git a/tests/at-spi2-atk/atk_test_util.c b/tests/at-spi2-atk/atk_test_util.c index a56b7913..b22aa3f6 100644 --- a/tests/at-spi2-atk/atk_test_util.c +++ b/tests/at-spi2-atk/atk_test_util.c @@ -26,18 +26,6 @@ static pid_t child_pid; static void -assert_clean_exit (int sig) -{ - kill (child_pid, SIGTERM); -} - -void -clean_exit_on_fail () -{ - signal (SIGABRT, assert_clean_exit); -} - -static void run_app (const char *file_name) { child_pid = fork (); |