summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore_audio.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-16 18:15:07 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-16 18:15:07 +0000
commit0f21b187b02a05791c2478feca67ec12858ee2b2 (patch)
tree6b852925cd2f807f492d0bc78835927084b0429e /src/tests/ecore/ecore_test_ecore_audio.c
parentad1417713b564bf28605077220b86794b9dbbcd6 (diff)
ecore_suite: disable audio tests that will be fixed by asdfuser
SVN revision: 82892
Diffstat (limited to 'src/tests/ecore/ecore_test_ecore_audio.c')
-rw-r--r--src/tests/ecore/ecore_test_ecore_audio.c31
1 files changed, 22 insertions, 9 deletions
diff --git a/src/tests/ecore/ecore_test_ecore_audio.c b/src/tests/ecore/ecore_test_ecore_audio.c
index 1ff85cf..a9fee15 100644
--- a/src/tests/ecore/ecore_test_ecore_audio.c
+++ b/src/tests/ecore/ecore_test_ecore_audio.c
@@ -16,8 +16,15 @@
16 16
17#define SOUNDS_DIR TESTS_SRC_DIR"/src/tests/ecore/" 17#define SOUNDS_DIR TESTS_SRC_DIR"/src/tests/ecore/"
18 18
19Ecore_Audio_Object *out; 19#if 0
20Ecore_Audio_Object *in; 20/* TODO: must fix these tests to produce no warnings and to be
21 * passing on all platforms that support them.
22 *
23 * It would be nice if timers are not used so it doesn't take an
24 * eternity to run ecore_suite. :-)
25 */
26static Ecore_Audio_Object *out;
27static Ecore_Audio_Object *in;
21 28
22Eina_Bool 29Eina_Bool
23seek(void *data) 30seek(void *data)
@@ -330,16 +337,17 @@ START_TEST(ecore_test_ecore_audio_custom)
330 ecore_audio_input_del(in); 337 ecore_audio_input_del(in);
331} 338}
332END_TEST 339END_TEST
340#endif
333 341
334START_TEST(ecore_test_ecore_audio_init) 342START_TEST(ecore_test_ecore_audio_init)
335{ 343{
336 int ret; 344 int ret;
337 345
338 ret = ecore_audio_init(); 346 ret = ecore_audio_init();
339 fail_if(ret != 2); 347 ck_assert_int_eq(ret, 2);
340 348
341 ret = ecore_audio_shutdown(); 349 ret = ecore_audio_shutdown();
342 fail_if(ret != 1); 350 ck_assert_int_eq(ret, 1);
343 351
344} 352}
345END_TEST 353END_TEST
@@ -349,17 +357,20 @@ void setup(void)
349 int ret; 357 int ret;
350 358
351 ret = eina_init(); 359 ret = eina_init();
360 ck_assert_int_ge(ret, 1);
361
352 ret = ecore_init(); 362 ret = ecore_init();
363 ck_assert_int_ge(ret, 1);
364
353 ret = ecore_audio_init(); 365 ret = ecore_audio_init();
366 ck_assert_int_eq(ret, 1);
354} 367}
355 368
356void teardown(void) 369void teardown(void)
357{ 370{
358 int ret; 371 ecore_audio_shutdown();
359 372 ecore_shutdown();
360 ret = ecore_audio_shutdown(); 373 eina_shutdown();
361 ret = ecore_shutdown();
362 ret = eina_shutdown();
363} 374}
364 375
365void 376void
@@ -369,11 +380,13 @@ ecore_test_ecore_audio(TCase *tc)
369 380
370 tcase_add_test(tc, ecore_test_ecore_audio_init); 381 tcase_add_test(tc, ecore_test_ecore_audio_init);
371 382
383#if 0
372 tcase_add_test(tc, ecore_test_ecore_audio_default); 384 tcase_add_test(tc, ecore_test_ecore_audio_default);
373 tcase_add_test(tc, ecore_test_ecore_audio_sndfile); 385 tcase_add_test(tc, ecore_test_ecore_audio_sndfile);
374 tcase_add_test(tc, ecore_test_ecore_audio_sndfile_vio); 386 tcase_add_test(tc, ecore_test_ecore_audio_sndfile_vio);
375 tcase_add_test(tc, ecore_test_ecore_audio_custom); 387 tcase_add_test(tc, ecore_test_ecore_audio_custom);
376 388
377 tcase_add_test(tc, ecore_test_ecore_audio_cleanup); 389 tcase_add_test(tc, ecore_test_ecore_audio_cleanup);
390#endif
378} 391}
379 392