[vlc-devel] [PATCH] test: use long sleep instead of pause

Marvin Scholz epirat07 at gmail.com
Fri Jul 17 12:45:07 CEST 2020


sigsuspend() and pause() (which internally just calls sigsuspend) is not
a reliable cancellation point on macOS, so when using this it will make
the test randomly fail.
---
 src/test/interrupt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/interrupt.c b/src/test/interrupt.c
index 808335575b..842c5d94e7 100644
--- a/src/test/interrupt.c
+++ b/src/test/interrupt.c
@@ -147,7 +147,7 @@ static void *test_thread_cancel(void *data)
     /* Test context clearing on cancellation */
     vlc_interrupt_set(ctx);
     for (;;)
-        pause();
+        sleep(10);
 
     vlc_assert_unreachable();
 }
-- 
2.24.3 (Apple Git-128)



More information about the vlc-devel mailing list