So I change this behavior by using the function _set_output_format. Otherwise tesh detect an output difference in test file relative with send/receive and priority samples.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5844
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
int main(int argc, char *argv[])
{
MSG_error_t res = MSG_OK;
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);
if (argc < 3) {
MSG_global_init(&argc,argv);
if (argc < 3) {
}
res = test_all(argv[1],argv[2]);
MSG_clean();
}
res = test_all(argv[1],argv[2]);
MSG_clean();
+
+ #ifdef _MSC_VER
+ _set_output_format(prev_exponent_format);
+ #endif
if(res==MSG_OK)
return 0;
if(res==MSG_OK)
return 0;
MSG_error_t res = MSG_OK;
MSG_error_t res = MSG_OK;
INFO0("test_all");
/* Simulation setting */
INFO0("test_all");
/* Simulation setting */
MSG_launch_application(application_file);
res = MSG_main();
MSG_launch_application(application_file);
res = MSG_main();
return res;
} /* end_of_test_all */
return res;
} /* end_of_test_all */
int main(int argc, char *argv[])
{
MSG_error_t res = MSG_OK;
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);
MSG_global_init(&argc,argv);
+ #ifdef _MSC_VER
+ _set_output_format(prev_exponent_format);
+ #endif
+
if(res==MSG_OK) return 0;
else return 1;
} /* end_of_main */
if(res==MSG_OK) return 0;
else return 1;
} /* end_of_main */