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
In READ and WRITE mode (instead of RW), the remote_arch is the first char of the...
[simgrid.git]
/
testsuite
/
gras
/
trp_tcp_client.c
diff --git
a/testsuite/gras/trp_tcp_client.c
b/testsuite/gras/trp_tcp_client.c
index
671e283
..
5eb465f
100644
(file)
--- a/
testsuite/gras/trp_tcp_client.c
+++ b/
testsuite/gras/trp_tcp_client.c
@@
-20,7
+20,10
@@
int main(int argc,char *argv[]) {
char data_send[256];
char data_recv[256];
char data_send[256];
char data_recv[256];
- gras_init_defaultlog(argc,argv,"trp.thresh=debug");
+ memset(data_send, 0, sizeof(data_send));
+ memset(data_recv, 0, sizeof(data_recv));
+
+ gras_init_defaultlog(&argc,argv,"trp.thresh=debug");
fprintf(stderr,"===[CLIENT]=== Contact the server\n");
TRYFAIL(gras_socket_client(NULL,55555,&sock));
fprintf(stderr,"===[CLIENT]=== Contact the server\n");
TRYFAIL(gras_socket_client(NULL,55555,&sock));
@@
-38,6
+41,8
@@
int main(int argc,char *argv[]) {
fprintf(stderr,"===[CLIENT]=== Got a valid ACK\n");
fprintf(stderr,"===[CLIENT]=== Exiting successfully\n");
fprintf(stderr,"===[CLIENT]=== Got a valid ACK\n");
fprintf(stderr,"===[CLIENT]=== Exiting successfully\n");
- gras_socket_close(&sock);
+ gras_socket_close(sock);
+
+ gras_exit();
return 0;
}
return 0;
}