[vlc-devel] commit: test: Spend less time in the media_list_player test. (Pierre d' Herbemont )

Rémi Denis-Courmont remi at remlab.net
Fri Jun 5 08:57:57 CEST 2009


On Fri,  5 Jun 2009 08:03:31 +0200 (CEST), git at videolan.org (git version
control) wrote:
> vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Thu Jun

> 4 23:02:28 2009 -0700| [c073ccebee7336b55712ade81eb3734527d5ac5b] |
> committer: Pierre d'Herbemont
> 
> test: Spend less time in the media_list_player test.

Reading the manual page for usleep(), I see scary stuff:

| POSIX.1-2001  declares this function obsolete; use nanosleep(2) instead.
| POSIX.1-2008 removes  the  specification  of usleep().
| (...)
| The  interaction  of  this  function  with the SIGALRM signal, and with
| other  timer  functions  such  as  alarm(2),  sleep(3),   nanosleep(2),
| setitimer(2),  timer_create(3),  timer_delete(3),  timer_getoverrun(3),
| timer_gettime(3), timer_settime(3), ualarm(3) is unspecified.

IIRC, our test cases do use alarm() (to fail on deadlocks), and VLC does
use nanosleep() (or clock_nanosleep()) and timer_*()...

-- 
Rémi Denis-Courmont




More information about the vlc-devel mailing list