A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
diff --git
a/buildtools/Cmake/test_prog/prog_sem_init.c
b/buildtools/Cmake/test_prog/prog_sem_init.c
index
f4d3038
..
9027c47
100644
(file)
--- a/
buildtools/Cmake/test_prog/prog_sem_init.c
+++ b/
buildtools/Cmake/test_prog/prog_sem_init.c
@@
-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;
}