summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore_audio.c
diff options
context:
space:
mode:
authorJean-Philippe ANDRE <jpeg@videolan.org>2014-03-04 22:31:02 +0900
committerJean-Philippe ANDRE <jpeg@videolan.org>2014-03-04 22:31:02 +0900
commit01f0b600ac9a8b34bcba029f3228826ed6220273 (patch)
tree72452fa58229f8ce11443fa0cadc16b7912df50a /src/tests/ecore/ecore_test_ecore_audio.c
parent2e0b5742e38a8bcb98a2e09da94e69752a279574 (diff)
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.
Diffstat (limited to '')
-rw-r--r--src/tests/ecore/ecore_test_ecore_audio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tests/ecore/ecore_test_ecore_audio.c b/src/tests/ecore/ecore_test_ecore_audio.c
index 78e13e5..8c33fd0 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
17{ 17{
18 Eina_Bool *pulse_context_failed = data; 18 Eina_Bool *pulse_context_failed = data;
19 19
20 if (pulse_context_failed) *pulse_context_failed = EINA_TRUE; 20 if (pulse_context_failed)
21 {
22 int pa_check = system("pulseaudio --check");
23 *pulse_context_failed = (pa_check == 0);
24 }
21 ecore_main_loop_quit(); 25 ecore_main_loop_quit();
22 26
23 return EINA_TRUE; 27 return EINA_TRUE;