forked from enlightenment/efl
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:
parent
2e0b5742e3
commit
01f0b600ac
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue