From f9270d7504b5ac0488bb381933a516b2e74e097f Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 7 Sep 2022 20:50:20 -0500 Subject: Make child_pid static to atk_test_util.c The one test that used that value can now use fixture->child_pid instead. --- tests/at-spi2-atk/atk_test_accessible.c | 2 +- tests/at-spi2-atk/atk_test_util.c | 2 +- tests/at-spi2-atk/atk_test_util.h | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/at-spi2-atk/atk_test_accessible.c b/tests/at-spi2-atk/atk_test_accessible.c index 97065310..cabff4cf 100644 --- a/tests/at-spi2-atk/atk_test_accessible.c +++ b/tests/at-spi2-atk/atk_test_accessible.c @@ -375,7 +375,7 @@ atk_test_accessible_get_process_id (gpointer fixture, gconstpointer user_data) { AtspiAccessible *obj = get_root_obj (DATA_FILE); guint proc_id = atspi_accessible_get_process_id (obj, NULL); - g_assert_cmpint (proc_id, ==, child_pid); + g_assert_cmpint (proc_id, ==, fixture->child_pid); } void diff --git a/tests/at-spi2-atk/atk_test_util.c b/tests/at-spi2-atk/atk_test_util.c index 547c9213..73c2f762 100644 --- a/tests/at-spi2-atk/atk_test_util.c +++ b/tests/at-spi2-atk/atk_test_util.c @@ -23,7 +23,7 @@ #include "atk_test_util.h" #include -pid_t child_pid; +static pid_t child_pid; static void assert_clean_exit (int sig) diff --git a/tests/at-spi2-atk/atk_test_util.h b/tests/at-spi2-atk/atk_test_util.h index fd900e05..2af8f8b1 100644 --- a/tests/at-spi2-atk/atk_test_util.h +++ b/tests/at-spi2-atk/atk_test_util.h @@ -33,8 +33,6 @@ #include #include -extern pid_t child_pid; - AtspiAccessible *get_root_obj (const char *file_name); void fixture_teardown (gpointer fixture, gconstpointer user_data); void clean_exit_on_fail (); -- cgit v1.2.1