From d9848730edbc531b49372923fa39ef37b9bdb242 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 9 Jun 2016 09:42:29 -0500 Subject: [PATCH] test-runner: Update to the new l_main API --- tools/test-runner.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/test-runner.c b/tools/test-runner.c index cccc8557..28d98142 100644 --- a/tools/test-runner.c +++ b/tools/test-runner.c @@ -1112,6 +1112,9 @@ static pid_t start_execution_timeout_timer(unsigned int max_exec_interval_sec, } if (test_timer_pid == 0) { + if (!l_main_init()) + exit(EXIT_FAILURE); + sigemptyset(&mask); sigaddset(&mask, SIGINT); sigaddset(&mask, SIGTERM); @@ -1129,6 +1132,8 @@ static pid_t start_execution_timeout_timer(unsigned int max_exec_interval_sec, l_timeout_remove(test_exec_timeout); l_signal_remove(signal); + l_main_exit(); + exit(EXIT_SUCCESS); }