mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 01:19:23 +01:00
test-runner: fix warning in gdb patch
This commit is contained in:
parent
cb1ed123e4
commit
f67505c5df
@ -1523,7 +1523,7 @@ static void run_py_tests(struct l_settings *hw_settings,
|
||||
struct l_queue *test_stats_queue)
|
||||
{
|
||||
char *argv[3];
|
||||
pid_t test_exec_pid, test_timer_pid;
|
||||
pid_t test_exec_pid, test_timer_pid = -1;
|
||||
struct timeval time_before, time_after, time_elapsed;
|
||||
unsigned int max_exec_interval;
|
||||
char *py_test = NULL;
|
||||
@ -1575,6 +1575,7 @@ start_next_test:
|
||||
if (test_exec_pid == corpse) {
|
||||
gettimeofday(&time_after, NULL);
|
||||
|
||||
if (test_timer_pid != -1)
|
||||
kill_process(test_timer_pid);
|
||||
|
||||
timersub(&time_after, &time_before, &time_elapsed);
|
||||
|
Loading…
Reference in New Issue
Block a user