From: mquinson Date: Wed, 28 Jan 2004 23:33:41 +0000 (+0000) Subject: Default debug level=verbose; tries to free the dict twice, just for entertaining... X-Git-Tag: v3.3~5328 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5819b205bbbeb2cb2e9b31c1d7d31d9ed67a1000?hp=83fd3e71884af5cb063e04ab0b42c3e4c897302f;ds=sidebyside Default debug level=verbose; tries to free the dict twice, just for entertaining purpose since everyone knows that it is safe to do so git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@18 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/testsuite/xbt/dict_usage.c b/testsuite/xbt/dict_usage.c index c91e580e96..c7928f5f55 100644 --- a/testsuite/xbt/dict_usage.c +++ b/testsuite/xbt/dict_usage.c @@ -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; }