X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/eff676f69a1e885f40f66b5aa5873d70782efe8e..824be6a65be336a4727708bc364cecddd6c7f5ca:/examples/msg/sendrecv/sendrecv.c diff --git a/examples/msg/sendrecv/sendrecv.c b/examples/msg/sendrecv/sendrecv.c index 22720ab345..0f5051facc 100644 --- a/examples/msg/sendrecv/sendrecv.c +++ b/examples/msg/sendrecv/sendrecv.c @@ -128,6 +128,8 @@ MSG_error_t test_all(const char *platform_file, MSG_error_t res = MSG_OK; + + INFO0("test_all"); /* Simulation setting */ @@ -142,6 +144,7 @@ MSG_error_t test_all(const char *platform_file, MSG_launch_application(application_file); res = MSG_main(); + return res; } /* end_of_test_all */ @@ -150,7 +153,10 @@ MSG_error_t test_all(const char *platform_file, int main(int argc, char *argv[]) { MSG_error_t res = MSG_OK; - + + #ifdef _MSC_VER + unsigned int prev_exponent_format = _set_output_format(_TWO_DIGIT_EXPONENT); + #endif MSG_global_init(&argc,argv); @@ -176,6 +182,10 @@ int main(int argc, char *argv[]) MSG_clean(); + #ifdef _MSC_VER + _set_output_format(prev_exponent_format); + #endif + if(res==MSG_OK) return 0; else return 1; } /* end_of_main */