Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
strenght the test of sem_init by testing that the function is not only compilable...
[simgrid.git] / buildtools / Cmake / test_prog / prog_sem_init.c
index a745bdd..9027c47 100644 (file)
@@ -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;
 }