A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Reduce the number of system headers loaded, overload some more system
[simgrid.git]
/
testsuite
/
xbt
/
dict_crash.c
diff --git
a/testsuite/xbt/dict_crash.c
b/testsuite/xbt/dict_crash.c
index
7c47823
..
99dadb3
100644
(file)
--- a/
testsuite/xbt/dict_crash.c
+++ b/
testsuite/xbt/dict_crash.c
@@
-11,6
+11,7
@@
#include <gras.h>
#include <time.h>
#include <stdio.h>
#include <gras.h>
#include <time.h>
#include <stdio.h>
+#include <stdlib.h>
#define NB_ELM 20000
#define SIZEOFKEY 1024
#define NB_ELM 20000
#define SIZEOFKEY 1024
@@
-20,6
+21,7
@@
static void print_str(void *str) {
printf("%s",(char*)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;
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);
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;
}
}
return no_error;
}