- fprintf(stderr,"==== Push 5000 strings, set them again 3 times, shift them\n");
- TRYFAIL(gras_dynar_new(&d,sizeof(char*),&free_string));
- for (cpt=0; cpt< 5000; cpt++) {
+ xbt_init_defaultlog(&argc,argv,"dynar.thresh=debug");
+
+ INFO0("==== Traverse the empty dynar");
+ d=xbt_dynar_new(sizeof(char *),&free_string);
+ xbt_dynar_foreach(d,cpt,s1){
+ xbt_assert0(FALSE,
+ "Damnit, there is something in the empty dynar");
+ }
+ xbt_dynar_free(&d);
+ xbt_dynar_free(&d);
+
+ INFO1("==== Push %d strings, set them again 3 times, shift them",NB_ELEM);
+ d=xbt_dynar_new(sizeof(char*),&free_string);
+ for (cpt=0; cpt< NB_ELEM; cpt++) {