Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Hide system-dependent message.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 9 Jul 2019 17:24:20 +0000 (19:24 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 9 Jul 2019 17:27:01 +0000 (19:27 +0200)
src/mc/ModelChecker.cpp

index 3cf073e..338c107 100644 (file)
@@ -141,10 +141,8 @@ static void MC_report_crash(int status)
     XBT_INFO("From signal: %s", strsignal(WTERMSIG(status)));
   else if (WIFEXITED(status))
     XBT_INFO("From exit: %i", WEXITSTATUS(status));
-  if (WCOREDUMP(status))
-    XBT_INFO("A core dump was generated by the system.");
-  else
-    XBT_INFO("No core dump was generated by the system.");
+  if (not xbt_log_no_loc)
+    XBT_INFO("%s core dump was generated by the system.", WCOREDUMP(status) ? "A" : "No");
   XBT_INFO("Counter-example execution trace:");
   for (auto const& s : mc_model_checker->getChecker()->get_textual_trace())
     XBT_INFO("  %s", s.c_str());