From e4e90f165e5e4d084bad9ba9da1973cdc7f5890c Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Thu, 29 Sep 2016 12:43:27 -0400 Subject: [PATCH] tests/core/audio: Process idle queue on EOS Otherwise idle tasks will register as memory leaks. Signed-off-by: Anna Schumaker --- tests/core/audio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/core/audio.c b/tests/core/audio.c index 2fa526cb..8d032758 100644 --- a/tests/core/audio.c +++ b/tests/core/audio.c @@ -230,6 +230,7 @@ void test_autopause() g_assert_cmpuint(state_count, ==, 5); audio_eos(); + while (idle_run_task()) {} g_assert_cmpint(pause_count, ==, -1); g_assert_cmpuint(audio_cur_state(), ==, GST_STATE_PAUSED); g_assert_cmpuint(state_count, ==, 6);