asdfuser pushed a commit to branch master.

commit b9ad2190ab6cebd7e1e57ba81ed7246f24b57980
Author: Daniel Willmann <[email protected]>
Date:   Fri Apr 26 18:48:42 2013 +0100

    ecore_audio: Test read-while-paused code path as well
    
    Signed-off-by: Daniel Willmann <[email protected]>
---
 src/tests/ecore/ecore_test_ecore_audio.c | 9 +++++++++
 1 file changed, 9 insertions(+)

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)
       fail_if(buf[i] != 0xaa);
   }
 
+  fail_if(!eo_do(in, ecore_audio_obj_paused_set(EINA_TRUE)));
+
+  fail_if(!eo_do(in, ecore_audio_obj_in_read(buf, 10, &read)));
+  fail_if(read != 10);
+
+  for (i=0; i<10; i++) {
+      fail_if(buf[i] != 0x00);
+  }
+
   eo_del(in);
 }
 END_TEST

-- 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr

Reply via email to