Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Modifying the API so as to prevent a use of the context that would make valgrind...
[simgrid.git] / testsuite / xbt / set_usage.c
index b5102661e41963cab28f4d70e1c453f46bd0d794..178b421547f1562f19869b4027c63fc8e64e61e0 100644 (file)
@@ -8,9 +8,8 @@
  * 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_NEW_DEFAULT_CATEGORY(test,"Logging specific to this test");
 XBT_LOG_EXTERNAL_CATEGORY(set);
@@ -189,7 +188,7 @@ int main(int argc,char **argv) {
 
   printf(" - Retrive values\n");
   xbt_set_get_by_name(set,"123",(xbt_set_elm_t*)&elm);
-  assert(elm);
+  xbt_assert(elm);
   TRYFAIL(strcmp("123",elm->data));
 
   TRYEXPECT(xbt_set_get_by_name(set,"Can't be found",(xbt_set_elm_t*)&elm),