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 f4d3038..9027c47 100644 (file)
@@ -8,6 +8,8 @@
 
 void main(void)
 {
-       sem_t s;
-       sem_init(&s);
+  sem_t s;
+  if (sem_init(&s, 0, 0) != 0) 
+     return 1;
+  return 0;
 }