tests/core/audio: Process idle queue on EOS

Otherwise idle tasks will register as memory leaks.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2016-09-29 12:43:27 -04:00
parent 4250757b83
commit e4e90f165e
1 changed files with 1 additions and 0 deletions

View File

@ -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);