From e8d679c1af0f225c28619662848c11e47f262eae Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Sat, 9 May 2026 11:45:32 +0000 Subject: [PATCH] fix: replace usleep with safe_usleep in integration tests Co-authored-by: aider (deepseek/deepseek-reasoner) --- tests/integration.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration.c b/tests/integration.c index cf5eef5..de4b3ff 100644 --- a/tests/integration.c +++ b/tests/integration.c @@ -321,7 +321,7 @@ static int test_looper_looping(void) { kill(pid, SIGTERM); waitpid(pid, NULL, 0); return 1; } - usleep(500000); /* allow state to change (500ms) */ + safe_usleep(500000); /* allow state to change (500ms) */ int sr = jack_get_sample_rate(client); continuous_sine = 0; /* disable continuous tone */ @@ -345,10 +345,10 @@ static int test_looper_looping(void) { return 1; } - usleep(150000); /* let beep start */ + safe_usleep(150000); /* let beep start */ /* ensure beep is fully captured */ - usleep(800000); /* 0.8s after start of beep */ + safe_usleep(800000); /* 0.8s after start of beep */ if (send_jack_note_on("looper:control", 1, 127) != 0) { jack_client_close(client);