Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Default debug level=verbose; tries to free the dict twice, just for entertaining...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 28 Jan 2004 23:33:41 +0000 (23:33 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 28 Jan 2004 23:33:41 +0000 (23:33 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@18 48e7efb5-ca39-0410-a469-dd3cf9ba447f

testsuite/xbt/dict_usage.c

index c91e580..c7928f5 100644 (file)
@@ -103,7 +103,7 @@ int main(int argc,char **argv) {
   gras_dict_t *head=NULL;
   char *data;
 
-  parse_log_opt(argc,argv,"dict.thresh=debug");
+  parse_log_opt(argc,argv,"dict.thresh=verbose");
    
   printf("\nGeneric dictionnary: USAGE test:\n");
 
@@ -113,6 +113,8 @@ int main(int argc,char **argv) {
   TRYFAIL(fill(&head));
   printf(" Free the dictionnary\n");
   gras_dict_free(&head);
+  printf(" Free the dictionnary again\n");
+  gras_dict_free(&head);
 
   TRYFAIL(fill(&head));
 
@@ -177,8 +179,10 @@ int main(int argc,char **argv) {
   TRYFAIL(debuged_remove(head,"123"));    TRYFAIL(traverse(head));
   TRYEXPECT(debuged_remove(head,"12346"),mismatch_error);  TRYFAIL(traverse(head));
   
+  printf(" - Free the dictionnary twice\n");
   gras_dict_free(&head);
   gras_dict_free(&head);
-
+  printf("Done\n");
+  fflush(stdout);
   return 0;
 }