- // TRYFAIL(gras_log_control_set("root.thresh=debug dynar.thresh=info"));
- TRYFAIL(gras_log_control_set("root.thresh=info"));
- fprintf(stderr,"==== Push %d int, set them again 3 times, traverse them, shift them\n",NB_ELEM);
- TRYFAIL(gras_dynar_new(&d,sizeof(int),NULL));
- for (cpt=0; cpt< NB_ELEM; cpt++) {
- TRYFAIL(gras_dynar_push(d,&cpt));
- // fprintf (stderr,"Push %d, length=%d \n",cpt, gras_dynar_length(d));
+ xbt_init_defaultlog(&argc,argv,"dynar.thresh=debug");
+
+ INFO0("==== Traverse the empty dynar");
+ d=xbt_dynar_new(sizeof(int),NULL);
+ xbt_dynar_foreach(d,cursor,i){
+ xbt_assert0(0,"Damnit, there is something in the empty dynar");