summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore_audio.c
diff options
context:
space:
mode:
authorDaniel Willmann <d.willmann@samsung.com>2013-04-19 16:41:17 +0100
committerDaniel Willmann <d.willmann@samsung.com>2013-04-19 18:34:16 +0100
commit6781342d3c992d27ca928ab03d833c6d5f508ac8 (patch)
tree17da04774ea68dfddd5f6744e248792f58a79048 /src/tests/ecore/ecore_test_ecore_audio.c
parentf12b3b94d0830b04eb1c38c6b1b7c58f5b547e55 (diff)
ecore_audio: Guard against attaching an input twice
Add check in input_attach and change test case accordingly 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.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tests/ecore/ecore_test_ecore_audio.c b/src/tests/ecore/ecore_test_ecore_audio.c
index 60f9ede..c70b9be 100644
--- a/src/tests/ecore/ecore_test_ecore_audio.c
+++ b/src/tests/ecore/ecore_test_ecore_audio.c
@@ -412,6 +412,7 @@ START_TEST(ecore_test_ecore_audio_obj_in_out)
412{ 412{
413 Eo *out2; 413 Eo *out2;
414 Eina_List *in3; 414 Eina_List *in3;
415 Eina_Bool attached;
415 416
416 Eo *in = eo_add(ECORE_AUDIO_OBJ_IN_CLASS, NULL); 417 Eo *in = eo_add(ECORE_AUDIO_OBJ_IN_CLASS, NULL);
417 Eo *in2 = eo_add(ECORE_AUDIO_OBJ_IN_CLASS, NULL); 418 Eo *in2 = eo_add(ECORE_AUDIO_OBJ_IN_CLASS, NULL);
@@ -429,7 +430,11 @@ START_TEST(ecore_test_ecore_audio_obj_in_out)
429 430
430 fail_if(eina_list_count(in3) != 0); 431 fail_if(eina_list_count(in3) != 0);
431 432
432 fail_if(!eo_do(out, ecore_audio_obj_out_input_attach(in, NULL))); 433 fail_if(!eo_do(out, ecore_audio_obj_out_input_attach(in, &attached)));
434 fail_if(!attached);
435
436 fail_if(!eo_do(out, ecore_audio_obj_out_input_attach(in, &attached)));
437 fail_if(attached);
433 438
434 fail_if(!eo_do(in, ecore_audio_obj_in_output_get(&out2))); 439 fail_if(!eo_do(in, ecore_audio_obj_in_output_get(&out2)));
435 440