Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make messages match the code.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 26 Dec 2017 21:17:57 +0000 (22:17 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 27 Dec 2017 17:08:38 +0000 (18:08 +0100)
teshsuite/msg/task_progress/task_progress.cpp

index 611f60e..d128dce 100644 (file)
@@ -29,7 +29,7 @@ static int seq_task(int /*argc*/, char* /*argv*/ [])
 
   XBT_INFO("get the progress of %s after the task finishes", task->name);
   progress = MSG_task_get_remaining_work_ratio(task);
-  xbt_assert(progress == 0, "Progress should be equal to 1 not %f", progress);
+  xbt_assert(progress == 0.0, "Progress should be equal to 0.0 not %f", progress);
 
   MSG_task_destroy(task);
   XBT_INFO("Goodbye now!");
@@ -58,7 +58,7 @@ static int par_task(int /*argc*/, char* /*argv*/ [])
 
   XBT_INFO("get the progress of %s after the task finishes", task->name);
   progress = MSG_task_get_remaining_work_ratio(task);
-  xbt_assert(progress == 0, "Progress should be equal to 1 not %f", progress);
+  xbt_assert(progress == 0.0, "Progress should be equal to 0.0 not %f", progress);
 
   MSG_task_destroy(task);
   delete[] computation_amount;