From 986244339b0dd8c429beba257a0566a18f3603fb Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Thu, 18 Apr 2013 19:47:35 +0100 Subject: tests/ecore_audio: Create temporary test files in build dir Signed-off-by: Daniel Willmann --- src/tests/ecore/ecore_test_ecore_audio.c | 9 +++++---- 1 file 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 f5a384d053..38d44c833b 100644 --- a/src/tests/ecore/ecore_test_ecore_audio.c +++ b/src/tests/ecore/ecore_test_ecore_audio.c @@ -11,8 +11,6 @@ #include #include -#define SOUNDS_DIR TESTS_SRC_DIR - #if 0 Eina_Bool seek(void *data) @@ -348,7 +346,7 @@ START_TEST(ecore_test_ecore_audio_obj_tone) eo_do(out, ecore_audio_obj_name_set("tmp.wav")); eo_do(out, ecore_audio_obj_format_set(ECORE_AUDIO_FORMAT_WAV)); - eo_do(out, ecore_audio_obj_source_set(SOUNDS_DIR"/tmp.wav")); + eo_do(out, ecore_audio_obj_source_set(TESTS_BUILD_DIR"/tmp.wav")); eo_do(out, ecore_audio_obj_out_input_attach(in, NULL)); @@ -358,6 +356,9 @@ START_TEST(ecore_test_ecore_audio_obj_tone) eo_del(in); eo_del(out); + + //TODO: Compare and fail + ecore_file_remove(TESTS_BUILD_DIR"/tmp.wav"); } END_TEST @@ -371,7 +372,7 @@ START_TEST(ecore_test_ecore_audio_obj_sndfile) fail_if(!in); eo_do(in, ecore_audio_obj_name_set("sms.ogg")); - eo_do(in, ecore_audio_obj_source_set(SOUNDS_DIR"/sms.ogg")); + eo_do(in, ecore_audio_obj_source_set(TESTS_SRC_DIR"/sms.ogg")); eo_do(in, ecore_audio_obj_in_channels_get(&channel)); fail_if(channel != 2); -- cgit v1.2.1