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
getopt seems to behave differently on BSD platforms, deactivate the test for them...
[simgrid.git]
/
teshsuite
/
smpi
/
pt2pt-pingpong
/
pt2pt-pingpong.c
diff --git
a/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
b/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
index
6ddb623
..
468bcc6
100644
(file)
--- a/
teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
+++ b/
teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
@@
-10,6
+10,7
@@
#include <mpi.h>
static void test_opts(int* argc, char **argv[]){
#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)
{
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");
}
if (found!=1){
printf("(smpi_)getopt failed ! \n");
}
+#endif
}
int main(int argc, char *argv[])
}
int main(int argc, char *argv[])