#include <gras.h>
#include <time.h>
#include <stdio.h>
+#include <stdlib.h>
#define NB_ELM 20000
#define SIZEOFKEY 1024
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;
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;
}