Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
getopt seems to behave differently on BSD platforms, deactivate the test for them...
authordegomme <adegomme@users.noreply.github.com>
Fri, 5 Apr 2019 14:40:26 +0000 (16:40 +0200)
committerdegomme <adegomme@users.noreply.github.com>
Fri, 5 Apr 2019 14:40:26 +0000 (16:40 +0200)
teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c

index 6ddb623..468bcc6 100644 (file)
@@ -10,6 +10,7 @@
 #include <mpi.h>
 
 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[])