Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
surf:~/Work/GRAS/heap $ valgrind --leak-check=yes --show-reachable=yes ./msg_test les
[simgrid.git] / testsuite / xbt / dict_usage.c
index 1ca353b..b7bd396 100644 (file)
@@ -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 <stdio.h>
-#include <assert.h>
 
-#include <gras.h>
+#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);