X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/320c1fe541f529573238ebba0bee1ec0293f1af4..98fcf9f030a152fb946c3860abc7b7d748d6f1a5:/testsuite/xbt/dict_crash.c?ds=sidebyside diff --git a/testsuite/xbt/dict_crash.c b/testsuite/xbt/dict_crash.c index 7c47823a7e..99dadb3e5c 100644 --- a/testsuite/xbt/dict_crash.c +++ b/testsuite/xbt/dict_crash.c @@ -11,6 +11,7 @@ #include #include #include +#include #define NB_ELM 20000 #define SIZEOFKEY 1024 @@ -20,6 +21,7 @@ static void print_str(void *str) { printf("%s",(char*)str); } +GRAS_LOG_NEW_DEFAULT_CATEGORY(test,"Logging specific to this test"); static gras_error_t traverse(gras_dict_t *head) { gras_dict_cursor_t *cursor=NULL; @@ -28,10 +30,8 @@ static gras_error_t traverse(gras_dict_t *head) { gras_dict_foreach(head,cursor,key,data) { // printf(" Seen: %s=%s\n",key,data); - if (strcmp(key,data)) { - printf("Key(%s) != value(%s). Abording\n",key,data); - abort(); - } + gras_assert2 (!strcmp(key,data), + "Key(%s) != value(%s). Abording\n",key,data); } return no_error; }