From 01f0b600ac9a8b34bcba029f3228826ed6220273 Mon Sep 17 00:00:00 2001 From: Jean-Philippe ANDRE Date: Tue, 4 Mar 2014 22:31:02 +0900 Subject: [PATCH] Ecore suite: Don't fail if PulseAudio is not running In a previous commit I mentionned that make check would fail if PulseAudio is not running. Well, this is a bit excessive, especially for buildbots where it doesn't have to be running. So let's check that PulseAudio is running before failing. Other errors should still be caught. A simple "pulseaudio --check" should do the trick. --- src/tests/ecore/ecore_test_ecore_audio.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tests/ecore/ecore_test_ecore_audio.c b/src/tests/ecore/ecore_test_ecore_audio.c index 78e13e536a..8c33fd0808 100644 --- a/src/tests/ecore/ecore_test_ecore_audio.c +++ b/src/tests/ecore/ecore_test_ecore_audio.c @@ -17,7 +17,11 @@ static Eina_Bool _failed_cb(void *data, Eo *obj EINA_UNUSED, const Eo_Event_Desc { Eina_Bool *pulse_context_failed = data; - if (pulse_context_failed) *pulse_context_failed = EINA_TRUE; + if (pulse_context_failed) + { + int pa_check = system("pulseaudio --check"); + *pulse_context_failed = (pa_check == 0); + } ecore_main_loop_quit(); return EINA_TRUE;