-/* Copyright (c) 2010-2017. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2010-2018. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include <xbt/ex.hpp>
+#include "simgrid/Exception.hpp"
#include "simgrid/msg.h"
XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example");
XBT_INFO("get the progress of %s before the task starts", task->name);
progress = MSG_task_get_remaining_work_ratio(task);
- xbt_assert(progress == 0, "Progress should be 0 not %f", progress);
+ xbt_assert(progress == 1.0, "Progress should be 1.0 not %f", progress);
XBT_INFO("Executing task: \"%s\"", task->name);
MSG_task_execute(task);
XBT_INFO("get the progress of %s before the task starts", task->name);
progress = MSG_task_get_remaining_work_ratio(task);
- xbt_assert(progress == 0, "Progress should be 0 not %f", progress);
+ xbt_assert(progress == 1.0, "Progress should be 1.0 not %f", progress);
XBT_INFO("Executing task: \"%s\"", task->name);
MSG_parallel_task_execute(task);