Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Improve coverage, even with high log threshold.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 29 Jan 2019 15:31:30 +0000 (16:31 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 29 Jan 2019 15:31:30 +0000 (16:31 +0100)
teshsuite/xbt/parmap_bench/parmap_bench.cpp

index a36b80a..db7c43e 100644 (file)
@@ -64,7 +64,8 @@ static void fun_big_comp(unsigned* arg)
 
 static void bench_parmap(int nthreads, double timeout, e_xbt_parmap_mode_t mode, bool full_bench)
 {
 
 static void bench_parmap(int nthreads, double timeout, e_xbt_parmap_mode_t mode, bool full_bench)
 {
-  XBT_INFO("** mode = %s", parmap_mode_name(mode).c_str());
+  std::string mode_name = parmap_mode_name(mode);
+  XBT_INFO("** mode = %s", mode_name.c_str());
 
   if (mode == XBT_PARMAP_FUTEX && not HAVE_FUTEX_H) {
     XBT_INFO("   not available");
 
   if (mode == XBT_PARMAP_FUTEX && not HAVE_FUTEX_H) {
     XBT_INFO("   not available");