Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit da50f010 authored by Millian Poquet's avatar Millian Poquet
Browse files

[code] fix --unittest / --dump...

parent 1f064095
......@@ -703,7 +703,12 @@ int main(int argc, char * argv[])
parse_main_args(argc, argv, main_args, return_code, run_simulation, run_unittests);
if (main_args.dump_execution_context)
if (run_unittests)
{
MSG_init(&argc, argv);
test_entry_point();
}
else if (main_args.dump_execution_context)
{
using namespace rapidjson;
Document object;
......@@ -728,17 +733,9 @@ int main(int argc, char * argv[])
// Print the string then terminate
printf("%s\n", buffer.GetString());
//std::cout << buffer.GetString() << std::endl;
return 0;
}
if (run_unittests)
{
MSG_init(&argc, argv);
test_entry_point();
}
if (!run_simulation)
{
return return_code;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment