From 1fd3cefc60d9ff2ba4878adb8ebab0524e63d1d1 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 16 Oct 2024 11:08:41 +1000 Subject: [PATCH] test: the created files list doesn't need to be a global This list was used in the signal handler but that is no longer the case, so let's localize this. Part-of: --- test/litest.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/litest.c b/test/litest.c index fa9f91df..5e08f423 100644 --- a/test/litest.c +++ b/test/litest.c @@ -109,8 +109,6 @@ created_file_unlink(struct created_file *f) rmdir(f->path); } -static struct list created_files_list; /* list of all files to remove at the end - of the test run */ static struct suite *current_suite = NULL; static void litest_init_udev_rules(struct list *created_files_list); @@ -1122,7 +1120,7 @@ litest_run(struct list *suites) if (setrlimit(RLIMIT_CORE, &corelimit) != 0) perror("WARNING: Core dumps not disabled"); - list_init(&created_files_list); + struct list created_files_list = LIST_INIT(created_files_list); if (run_deviceless) { litest_setup_quirks(&created_files_list, -- 2.34.1