From: degomme Date: Fri, 5 Apr 2019 14:40:26 +0000 (+0200) Subject: getopt seems to behave differently on BSD platforms, deactivate the test for them... X-Git-Tag: v3.22.2~164^2~1 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b46cc49382cda87e0ee724f97277bd143566985e?hp=80ce6e44e60fc872257d4e9fc5100e419d0ae376 getopt seems to behave differently on BSD platforms, deactivate the test for them, pending investigation. --- diff --git a/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c b/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c index 6ddb623680..468bcc6211 100644 --- a/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c +++ b/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c @@ -10,6 +10,7 @@ #include static void test_opts(int* argc, char **argv[]){ +#if defined __linux__ int found = 0, ret; while ((ret = getopt(*argc, *argv, "s")) >= 0) { @@ -22,6 +23,7 @@ static void test_opts(int* argc, char **argv[]){ if (found!=1){ printf("(smpi_)getopt failed ! \n"); } +#endif } int main(int argc, char *argv[])