tester: Remove timeout if pre-setup failed
PATCH 1/1 tester: Remove timeout if pre-setup failed
If test pre setup stage fails, remove test run timeout. Also, fix a stray call to free(): should be l_free().
--- ell/tester.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
ell/tester.c +4 -1
@@ -279,6 +279,9 @@ LIB_EXPORT void l_tester_pre_setup_failed(struct l_tester *tester)print_progress (test->name,COLOR_RED ,"pre setup failed" ); +l_timeout_remove (test->run_timer); + test->run_timer =NULL ; +l_idle_oneshot (done_callback, tester,NULL ); }
@@ -501,7 +504,7 @@ static void wait_callback(struct l_timeout *timer, void *user_data) wait->func (wait->user_data); -free (wait); +l_free (wait);l_timeout_remove (timer); }
Signature · 1 line
2.26.3
Denis Kenzior
AppliedHi Inga,
Quoted 6 lines · Inga Stotland
If test pre setup stage fails, remove test run timeout. Also, fix a stray call to
free(): should bel_free().--- ell/tester.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Applied, thanks.
Regards,
-Denis