summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore_audio.c
diff options
context:
space:
mode:
authorDaniel Willmann <d.willmann@samsung.com>2013-04-26 18:48:42 +0100
committerDaniel Willmann <d.willmann@samsung.com>2013-04-26 18:49:25 +0100
commitb9ad2190ab6cebd7e1e57ba81ed7246f24b57980 (patch)
tree9bc930755b3a6fd1eadd56ea77f45542f9ae22ae /src/tests/ecore/ecore_test_ecore_audio.c
parentfdb73b8a49f8f12285de9aac0777b6d7185ba4e7 (diff)
ecore_audio: Test read-while-paused code path as well
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
Diffstat (limited to 'src/tests/ecore/ecore_test_ecore_audio.c')
-rw-r--r--src/tests/ecore/ecore_test_ecore_audio.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tests/ecore/ecore_test_ecore_audio.c b/src/tests/ecore/ecore_test_ecore_audio.c
index 301282b..271d0ea 100644
--- a/src/tests/ecore/ecore_test_ecore_audio.c
+++ b/src/tests/ecore/ecore_test_ecore_audio.c
@@ -618,6 +618,15 @@ START_TEST(ecore_test_ecore_audio_obj_in)
618 fail_if(buf[i] != 0xaa); 618 fail_if(buf[i] != 0xaa);
619 } 619 }
620 620
621 fail_if(!eo_do(in, ecore_audio_obj_paused_set(EINA_TRUE)));
622
623 fail_if(!eo_do(in, ecore_audio_obj_in_read(buf, 10, &read)));
624 fail_if(read != 10);
625
626 for (i=0; i<10; i++) {
627 fail_if(buf[i] != 0x00);
628 }
629
621 eo_del(in); 630 eo_del(in);
622} 631}
623END_TEST 632END_TEST