X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8c354c48ec90c997cc7213ce96ca97d882934166..a34ef23d94354c30d547af05de907a6823cddf77:/testsuite/xbt/dict_usage.c diff --git a/testsuite/xbt/dict_usage.c b/testsuite/xbt/dict_usage.c index ae87f1feca..b7bd396b3a 100644 --- a/testsuite/xbt/dict_usage.c +++ b/testsuite/xbt/dict_usage.c @@ -2,15 +2,14 @@ /* dict_usage - A test of normal usage of a dictionnary */ -/* Copyright (c) 2004 Martin Quinson. All rights reserved. */ +/* Copyright (c) 2003,2004 Martin Quinson. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #include -#include -#include +#include "gras.h" XBT_LOG_EXTERNAL_CATEGORY(dict); XBT_LOG_NEW_DEFAULT_CATEGORY(test,"Logging specific to this test"); @@ -125,7 +124,7 @@ int main(int argc,char **argv) { printf(" - Retrive values\n"); TRYFAIL(xbt_dict_get(head,"123",(void**)&data)); - assert(data); + xbt_assert(data); TRYFAIL(strcmp("123",data)); TRYEXPECT(xbt_dict_get(head,"Can't be found",(void**)&data),mismatch_error);