ell.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH] tester: Remove timeout if pre-setup failed
@ 2021-04-23 18:26 Inga Stotland
  2021-04-26 15:34 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Inga Stotland @ 2021-04-23 18:26 UTC (permalink / raw)
  To: ell

[-- Attachment #1: Type: text/plain, Size: 792 bytes --]

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(-)

diff --git a/ell/tester.c b/ell/tester.c
index 54fbb4b..7625b93 100644
--- a/ell/tester.c
+++ b/ell/tester.c
@@ -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);
 }
-- 
2.26.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tester: Remove timeout if pre-setup failed
  2021-04-23 18:26 [PATCH] tester: Remove timeout if pre-setup failed Inga Stotland
@ 2021-04-26 15:34 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2021-04-26 15:34 UTC (permalink / raw)
  To: ell

[-- Attachment #1: Type: text/plain, Size: 301 bytes --]

Hi Inga,

On 4/23/21 1:26 PM, Inga Stotland wrote:
> 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(-)
> 

Applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-26 15:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23 18:26 [PATCH] tester: Remove timeout if pre-setup failed Inga Stotland
2021-04-26 15:34 ` Denis Kenzior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).