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
cut the backtrace displayed from sthread to the sthread_create to hide useless cruft
[simgrid.git]
/
teshsuite
/
smpi
/
pt2pt-dsend
/
pt2pt-dsend.c
diff --git
a/teshsuite/smpi/pt2pt-dsend/pt2pt-dsend.c
b/teshsuite/smpi/pt2pt-dsend/pt2pt-dsend.c
index 0a76bed2fbb804ac53ddd3eb1daa9149f1bf20a3..a586ccd4987b5f1f7f4d6588a09acab23e8f58c7 100644
(file)
--- a/
teshsuite/smpi/pt2pt-dsend/pt2pt-dsend.c
+++ b/
teshsuite/smpi/pt2pt-dsend/pt2pt-dsend.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2011-20
19
. The SimGrid Team.
+/* Copyright (c) 2011-20
23
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-11,7
+11,8
@@
XBT_LOG_NEW_DEFAULT_CATEGORY(dsend,"the dsend test");
XBT_LOG_NEW_DEFAULT_CATEGORY(dsend,"the dsend test");
-static void test_opts(int* argc, char **argv[]){
+static void test_opts(int argc, char* const argv[])
+{
int found = 0;
int option_index = 0;
static struct option long_options[] = {
int found = 0;
int option_index = 0;
static struct option long_options[] = {
@@
-19,14
+20,12
@@
static void test_opts(int* argc, char **argv[]){
{0, 0, 0, 0 }
};
while (1) {
{0, 0, 0, 0 }
};
while (1) {
- int ret = getopt_long(
*argc, *
argv, "s", long_options, &option_index);
+ int ret = getopt_long(
argc,
argv, "s", long_options, &option_index);
if(ret==-1)
break;
switch (ret) {
case 0:
if(ret==-1)
break;
switch (ret) {
case 0:
- found++;
- break;
case 's':
found ++;
break;
case 's':
found ++;
break;
@@
-48,7
+47,7
@@
int main(int argc, char *argv[])
MPI_Init(NULL, NULL);
/* test getopt_long function */
MPI_Init(NULL, NULL);
/* test getopt_long function */
- test_opts(
&argc, &
argv);
+ test_opts(
argc,
argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Request r;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Request r;
@@
-76,5
+75,5
@@
int main(int argc, char *argv[])
XBT_INFO("rank %d: data exchanged", rank);
MPI_Finalize();
XBT_INFO("rank %d: data exchanged", rank);
MPI_Finalize();
-
return 0
;
+
exit(0)
;
}
}