From 4943869398171699b3341425c4a565d25a24f74b Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 13 Sep 2015 21:52:20 +0200 Subject: [PATCH 1/1] Cut the dirname in error messages so that the tests remain reproducible This was already the case 2 hours ago, but now, do it in a portable way. --- src/simdag/sd_daxloader.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/simdag/sd_daxloader.c b/src/simdag/sd_daxloader.c index e48ca55e51..16af27ae30 100644 --- a/src/simdag/sd_daxloader.c +++ b/src/simdag/sd_daxloader.c @@ -8,6 +8,7 @@ #include "simgrid/simdag.h" #include "xbt/misc.h" #include "xbt/log.h" +#include "xbt/file.h" /* xbt_basename() */ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(sd_daxparse, sd, "Parsing DAX files"); @@ -367,7 +368,8 @@ xbt_dynar_t SD_daxload(const char *filename) } if (!acyclic_graph_detail(result)){ - XBT_ERROR("The DAX described in %s is not a DAG. It contains a cycle.", filename); + XBT_ERROR("The DAX described in %s is not a DAG. It contains a cycle.", + xbt_basename(filename)); xbt_dynar_foreach(result, cpt, file) SD_task_destroy(file); xbt_dynar_free_container(&result); -- 2.20.1