From: Martin Quinson Date: Tue, 26 Apr 2011 13:39:00 +0000 (+0200) Subject: strenght the test of sem_init by testing that the function is not only compilable... X-Git-Tag: v3_6_rc3~99 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e54ce81e16d6d8ac7f4727a39a2d43ef7e8b0eaa?ds=sidebyside strenght the test of sem_init by testing that the function is not only compilable but also usable (returned 'function not implemented' on mac) --- diff --git a/buildtools/Cmake/test_prog/prog_sem_init.c b/buildtools/Cmake/test_prog/prog_sem_init.c index a745bddd83..9027c47d6c 100644 --- a/buildtools/Cmake/test_prog/prog_sem_init.c +++ b/buildtools/Cmake/test_prog/prog_sem_init.c @@ -9,5 +9,7 @@ void main(void) { sem_t s; - sem_init(&s, 0, 0); + if (sem_init(&s, 0, 0) != 0) + return 1; + return 0; }