From 5819b205bbbeb2cb2e9b31c1d7d31d9ed67a1000 Mon Sep 17 00:00:00 2001 From: mquinson Date: Wed, 28 Jan 2004 23:33:41 +0000 Subject: [PATCH 1/1] 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 --- testsuite/xbt/dict_usage.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; } -- 2.20.1