summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore_audio.c
diff options
context:
space:
mode:
authorDaniel Willmann <d.willmann@samsung.com>2013-04-18 19:47:35 +0100
committerDaniel Willmann <d.willmann@samsung.com>2013-04-18 19:47:35 +0100
commit986244339b0dd8c429beba257a0566a18f3603fb (patch)
treeacf98d79ddd05be6c91d15e836a67dde9cbc42d1 /src/tests/ecore/ecore_test_ecore_audio.c
parent2d859063677ec2a46b3ae3c49d5fa722ff9f7cf8 (diff)
tests/ecore_audio: Create temporary test files in build dir
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, 5 insertions, 4 deletions
diff --git a/src/tests/ecore/ecore_test_ecore_audio.c b/src/tests/ecore/ecore_test_ecore_audio.c
index f5a384d..38d44c8 100644
--- a/src/tests/ecore/ecore_test_ecore_audio.c
+++ b/src/tests/ecore/ecore_test_ecore_audio.c
@@ -11,8 +11,6 @@
11#include <Ecore.h> 11#include <Ecore.h>
12#include <Ecore_Audio.h> 12#include <Ecore_Audio.h>
13 13
14#define SOUNDS_DIR TESTS_SRC_DIR
15
16#if 0 14#if 0
17Eina_Bool 15Eina_Bool
18seek(void *data) 16seek(void *data)
@@ -348,7 +346,7 @@ START_TEST(ecore_test_ecore_audio_obj_tone)
348 346
349 eo_do(out, ecore_audio_obj_name_set("tmp.wav")); 347 eo_do(out, ecore_audio_obj_name_set("tmp.wav"));
350 eo_do(out, ecore_audio_obj_format_set(ECORE_AUDIO_FORMAT_WAV)); 348 eo_do(out, ecore_audio_obj_format_set(ECORE_AUDIO_FORMAT_WAV));
351 eo_do(out, ecore_audio_obj_source_set(SOUNDS_DIR"/tmp.wav")); 349 eo_do(out, ecore_audio_obj_source_set(TESTS_BUILD_DIR"/tmp.wav"));
352 350
353 eo_do(out, ecore_audio_obj_out_input_attach(in, NULL)); 351 eo_do(out, ecore_audio_obj_out_input_attach(in, NULL));
354 352
@@ -358,6 +356,9 @@ START_TEST(ecore_test_ecore_audio_obj_tone)
358 356
359 eo_del(in); 357 eo_del(in);
360 eo_del(out); 358 eo_del(out);
359
360 //TODO: Compare and fail
361 ecore_file_remove(TESTS_BUILD_DIR"/tmp.wav");
361} 362}
362END_TEST 363END_TEST
363 364
@@ -371,7 +372,7 @@ START_TEST(ecore_test_ecore_audio_obj_sndfile)
371 fail_if(!in); 372 fail_if(!in);
372 373
373 eo_do(in, ecore_audio_obj_name_set("sms.ogg")); 374 eo_do(in, ecore_audio_obj_name_set("sms.ogg"));
374 eo_do(in, ecore_audio_obj_source_set(SOUNDS_DIR"/sms.ogg")); 375 eo_do(in, ecore_audio_obj_source_set(TESTS_SRC_DIR"/sms.ogg"));
375 376
376 eo_do(in, ecore_audio_obj_in_channels_get(&channel)); 377 eo_do(in, ecore_audio_obj_in_channels_get(&channel));
377 fail_if(channel != 2); 378 fail_if(channel != 2);