X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2539fff313cbd67c45b8490f7961e45e358d9ba2..62f9057c5250b460384dd7d2e10d9b7bb2be3e5d:/testsuite/xbt/dict_usage.c diff --git a/testsuite/xbt/dict_usage.c b/testsuite/xbt/dict_usage.c index 1ca353b8b3..b7bd396b3a 100644 --- a/testsuite/xbt/dict_usage.c +++ b/testsuite/xbt/dict_usage.c @@ -2,16 +2,14 @@ /* dict_usage - A test of normal usage of a dictionnary */ -/* Authors: Martin Quinson */ -/* Copyright (C) 2003 the OURAGAN project. */ +/* 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. */ + * 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"); @@ -126,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);