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.
This commit is contained in:
Jean-Philippe ANDRE 2014-03-04 22:31:02 +09:00
parent 2e0b5742e3
commit 01f0b600ac
1 changed files with 5 additions and 1 deletions

View File

@ -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;