* under the terms of the license (GNU LGPL) which comes with this package. */
#include <stdio.h>
-#include <gras.h>
+#include "gras.h"
/*====[ Prototypes ]=========================================================*/
xbt_cfg_t make_set(void); /* build a minimal set */
/* dict_crash - A crash test for dictionnaries */
-/* 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 <gras.h>
+#include "gras.h"
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
/* 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 <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");
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);
/* dynar_double: A test case for the dynar using doubles as content */
-/* 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 <stdio.h>
-#include <gras.h>
+#include "gras.h"
XBT_LOG_NEW_DEFAULT_CATEGORY(test,"Logging specific to this test");
/* dynar_int: A test case for the dynar using integers as content */
-/* 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 <stdio.h>
-#include <gras.h>
+#include "gras.h"
#define NB_ELEM 5000
XBT_LOG_NEW_DEFAULT_CATEGORY(test,"Logging specific to this test");
/* dynar_string: A test case for the dynar using strings as content */
-/* 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 <stdio.h>
-#include <gras.h>
+#include <stdio.h> /* sprintf */
+#include "gras.h"
/* NB_ELEM HAS to be a multiple of 5 */
#define NB_ELEM 5000
/* log_usage - A test of normal usage of the log facilities */
-/* 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 <gras.h>
-#include <stdio.h>
+#include "gras.h"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(test, top,"Logging specific to this test");
XBT_LOG_NEW_CATEGORY(top,"Useless test channel");
/* multidict_crash - A crash test for multi-level dictionnaries */
-/* 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 <stdio.h>
-#include <assert.h>
-#include <gras.h>
+#include "gras.h"
#define NB_ELM 10/*00*/
#define MULTICACHE_DEPTH 5
* 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);
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),