diff --git a/tst/21-create-many.c b/tst/21-create-many.c index cb82ee7..a339ccf 100644 --- a/tst/21-create-many.c +++ b/tst/21-create-many.c @@ -32,7 +32,7 @@ int main(int argc, char *argv[]) if (argc < 2) { printf("argument manquant: nombre de threads\n"); - return -1; + return EXIT_FAILURE; } nb = atoi(argv[1]); diff --git a/tst/22-create-many-recursive.c b/tst/22-create-many-recursive.c index ec00b4f..3788ae6 100644 --- a/tst/22-create-many-recursive.c +++ b/tst/22-create-many-recursive.c @@ -40,7 +40,7 @@ int main(int argc, char *argv[]) if (argc < 2) { printf("argument manquant: nombre de threads\n"); - return -1; + return EXIT_FAILURE; } nb = atoi(argv[1]); diff --git a/tst/23-create-many-once.c b/tst/23-create-many-once.c index d430fd0..fe8921d 100644 --- a/tst/23-create-many-once.c +++ b/tst/23-create-many-once.c @@ -31,7 +31,7 @@ int main(int argc, char *argv[]) if (argc < 2) { printf("argument manquant: nombre de threads\n"); - return -1; + return EXIT_FAILURE; } nb = atoi(argv[1]); @@ -39,7 +39,7 @@ int main(int argc, char *argv[]) th = malloc(nb*sizeof(*th)); if (!th) { perror("malloc"); - return -1; + return EXIT_FAILURE; } gettimeofday(&tv1, NULL); diff --git a/tst/31-switch-many.c b/tst/31-switch-many.c index eb04fa2..0cd1003 100644 --- a/tst/31-switch-many.c +++ b/tst/31-switch-many.c @@ -36,7 +36,7 @@ int main(int argc, char *argv[]) if (argc < 3) { printf("arguments manquants: nombre de threads, puis nombre de yield\n"); - return -1; + return EXIT_FAILURE; } nbth = atoi(argv[1]); diff --git a/tst/32-switch-many-join.c b/tst/32-switch-many-join.c index 42fe908..deffb36 100644 --- a/tst/32-switch-many-join.c +++ b/tst/32-switch-many-join.c @@ -36,8 +36,9 @@ static void * thfunc(void *_nbth) struct timeval tv1, tv2; unsigned long us; gettimeofday(&tv1, NULL); - for(i=0; i