-/* XML processor/application API for /home/navarrop/Developments/simgrid/src/surf/simgrid.dtd.
- * Generated 2010/04/15 01:26:44.
+/* XML processor/application API for src/surf/simgrid.dtd.
+ * Generated 2010/06/17 19:11:51.
*
* This program was generated with the FleXML XML processor generator.
* FleXML is Copyright (C) 1999-2005 Kristoffer Rose. All rights reserved.
-/* XML processor/application API for /home/navarrop/Developments/simgrid/src/xbt/graphxml.dtd.
- * Generated 2010/04/14 18:52:06.
+/* XML processor/application API for src/xbt/graphxml.dtd.
+ * Generated 2010/06/17 19:11:52.
*
* This program was generated with the FleXML XML processor generator.
* FleXML is Copyright (C) 1999-2005 Kristoffer Rose. All rights reserved.
/* GENERATED FILE, DO NOT EDIT */
/*******************************/
-# 1296 "/home/navarrop/Developments/simgrid/src/xbt/config.c"
+#line 1295 "xbt/config.c"
#include "xbt.h"
#include "xbt/ex.h"
/* GENERATED FILE, DO NOT EDIT */
/*******************************/
-# 824 "/home/navarrop/Developments/simgrid/src/xbt/cunit.c"
+#line 823 "xbt/cunit.c"
XBT_TEST_UNIT("expect", test_expected_failure, "expected failures")
/* GENERATED FILE, DO NOT EDIT */
/*******************************/
-# 799 "/home/navarrop/Developments/simgrid/src/xbt/dict.c"
+#line 810 "xbt/dict.c"
#include "xbt.h"
#include "xbt/ex.h"
#include "portable.h"
/* GENERATED FILE, DO NOT EDIT */
/*******************************/
-# 691 "/home/navarrop/Developments/simgrid/src/xbt/dynar.c"
+#line 716 "xbt/dynar.c"
#define NB_ELEM 5000
xbt_dynar_foreach(d, cursor, i) {
xbt_assert0(0, "Damnit, there is something in the empty dynar");
}
- xbt_dynar_free(&d);
- xbt_dynar_free(&d);
+ xbt_dynar_free(&d); /* This code is used both as example and as regression test, so we try to */
+ xbt_dynar_free(&d); /* free the struct twice here to check that it's ok, but freeing it only once */
+ /* in your code is naturally the way to go outside a regression test */
xbt_test_add1
("==== Push %d int, set them again 3 times, traverse them, shift them",
}
/* 5. Free the resources */
- xbt_dynar_free(&d);
- xbt_dynar_free(&d);
-
+ xbt_dynar_free(&d); /* This code is used both as example and as regression test, so we try to */
+ xbt_dynar_free(&d); /* free the struct twice here to check that it's ok, but freeing it only once */
+ /* in your code is naturally the way to go outside a regression test */
xbt_test_add1("==== Unshift/pop %d int", NB_ELEM);
d = xbt_dynar_new(sizeof(int), NULL);
i, cpt);
xbt_test_log2("Pop %d, length=%lu", cpt, xbt_dynar_length(d));
}
- xbt_dynar_free(&d);
- xbt_dynar_free(&d);
+ xbt_dynar_free(&d); /* This code is used both as example and as regression test, so we try to */
+ xbt_dynar_free(&d); /* free the struct twice here to check that it's ok, but freeing it only once */
+ /* in your code is naturally the way to go outside a regression test */
xbt_test_add1
"The retrieved value is not the same than the injected one at the end (%d!=%d)",
i, cpt);
}
- xbt_dynar_free(&d);
- xbt_dynar_free(&d);
-
+ xbt_dynar_free(&d); /* This code is used both as example and as regression test, so we try to */
+ xbt_dynar_free(&d); /* free the struct twice here to check that it's ok, but freeing it only once */
+ /* in your code is naturally the way to go outside a regression test */
xbt_test_add1("==== Push %d int, remove 2000-4000. free the rest", NB_ELEM);
d = xbt_dynar_new(sizeof(int), NULL);
"Remove a bad value. Got %d, expected %d", i, cpt);
DEBUG2("remove %d, length=%lu", cpt, xbt_dynar_length(d));
}
- xbt_dynar_free(&d);
- xbt_dynar_free(&d);
+ xbt_dynar_free(&d); /* This code is used both as example and as regression test, so we try to */
+ xbt_dynar_free(&d); /* free the struct twice here to check that it's ok, but freeing it only once */
+ /* in your code is naturally the way to go outside a regression test */
}
/*******************************************************************************/
xbt_dynar_foreach(d, cursor, cpt) {
xbt_test_assert0(FALSE, "Damnit, there is something in the empty dynar");
}
- xbt_dynar_free(&d);
- xbt_dynar_free(&d);
+ xbt_dynar_free(&d); /* This code is used both as example and as regression test, so we try to */
+ xbt_dynar_free(&d); /* free the struct twice here to check that it's ok, but freeing it only once */
+ /* in your code is naturally the way to go outside a regression test */
xbt_test_add0("==== Push/shift 5000 doubles");
d = xbt_dynar_new(sizeof(double), NULL);
"The retrieved value is not the same than the injected one (%f!=%f)",
d1, d2);
}
- xbt_dynar_free(&d);
- xbt_dynar_free(&d);
-
+ xbt_dynar_free(&d); /* This code is used both as example and as regression test, so we try to */
+ xbt_dynar_free(&d); /* free the struct twice here to check that it's ok, but freeing it only once */
+ /* in your code is naturally the way to go outside a regression test */
xbt_test_add0("==== Unshift/pop 5000 doubles");
d = xbt_dynar_new(sizeof(double), NULL);
"The retrieved value is not the same than the injected one (%f!=%f)",
d1, d2);
}
- xbt_dynar_free(&d);
- xbt_dynar_free(&d);
+ xbt_dynar_free(&d); /* This code is used both as example and as regression test, so we try to */
+ xbt_dynar_free(&d); /* free the struct twice here to check that it's ok, but freeing it only once */
+ /* in your code is naturally the way to go outside a regression test */
"The retrieved value is not the same than the injected one at the end (%f!=%f)",
d1, d2);
}
- xbt_dynar_free(&d);
- xbt_dynar_free(&d);
+ xbt_dynar_free(&d); /* This code is used both as example and as regression test, so we try to */
+ xbt_dynar_free(&d); /* free the struct twice here to check that it's ok, but freeing it only once */
+ /* in your code is naturally the way to go outside a regression test */
xbt_test_add0("==== Push 5000 double, remove 2000-4000. free the rest");
xbt_test_assert2(d1 == d2,
"Remove a bad value. Got %f, expected %f", d2, d1);
}
- xbt_dynar_free(&d);
- xbt_dynar_free(&d);
+ xbt_dynar_free(&d); /* This code is used both as example and as regression test, so we try to */
+ xbt_dynar_free(&d); /* free the struct twice here to check that it's ok, but freeing it only once */
+ /* in your code is naturally the way to go outside a regression test */
}
xbt_dynar_foreach(d, iter, s1) {
xbt_test_assert0(FALSE, "Damnit, there is something in the empty dynar");
}
- xbt_dynar_free(&d);
- xbt_dynar_free(&d);
+ xbt_dynar_free(&d); /* This code is used both as example and as regression test, so we try to */
+ xbt_dynar_free(&d); /* free the struct twice here to check that it's ok, but freeing it only once */
+ /* in your code is naturally the way to go outside a regression test */
xbt_test_add1("==== Push %d strings, set them again 3 times, shift them",
NB_ELEM);
buf, s2);
free(s2);
}
- xbt_dynar_free(&d);
- xbt_dynar_free(&d);
-
+ xbt_dynar_free(&d); /* This code is used both as example and as regression test, so we try to */
+ xbt_dynar_free(&d); /* free the struct twice here to check that it's ok, but freeing it only once */
+ /* in your code is naturally the way to go outside a regression test */
xbt_test_add1("==== Unshift, traverse and pop %d strings", NB_ELEM);
d = xbt_dynar_new(sizeof(char **), &xbt_free_ref);
free(s2);
}
/* 4. Free the resources */
- xbt_dynar_free(&d);
- xbt_dynar_free(&d);
+ xbt_dynar_free(&d); /* This code is used both as example and as regression test, so we try to */
+ xbt_dynar_free(&d); /* free the struct twice here to check that it's ok, but freeing it only once */
+ /* in your code is naturally the way to go outside a regression test */
xbt_test_add2
buf, s2);
free(s2);
}
- xbt_dynar_free(&d);
- xbt_dynar_free(&d);
+ xbt_dynar_free(&d); /* This code is used both as example and as regression test, so we try to */
+ xbt_dynar_free(&d); /* free the struct twice here to check that it's ok, but freeing it only once */
+ /* in your code is naturally the way to go outside a regression test */
xbt_test_add3("==== Push %d strings, remove %d-%d. free the rest", NB_ELEM,
/* GENERATED FILE, DO NOT EDIT */
/*******************************/
-# 202 "/home/navarrop/Developments/simgrid/src/xbt/ex.c"
+#line 231 "xbt/ex.c"
#include <stdio.h>
#include "xbt/ex.h"
-#line 3 "gras/DataDesc/ddt_parse.yy.c"
+#line 3 "src/gras/DataDesc/ddt_parse.yy.c"
#define YY_INT_ALIGNED short int
#define YY_RESTORE_YY_MORE_OFFSET
char *gras_ddt_parse_text;
/* DataDesc/ddt_parse -- automatic parsing of data structures */
-/* Copyright (c) 2004, 2005, 2006, 2007, 2008, 2009, 2010. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2004 Arnaud Legrand, 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/DataDesc/datadesc_private.h"
/* GENERATED FILE, DO NOT EDIT */
/*******************************/
-# 317 "/home/navarrop/Developments/simgrid/src/xbt/set.c"
+#line 316 "xbt/set.c"
#include "xbt.h"
#include "xbt/ex.h"
-#line 3 "simdag/dax_dtd.c"
+#line 3 "src/simdag/dax_dtd.c"
#define YY_INT_ALIGNED short int
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *dax_text;
-/* Validating XML processor for simdag/dax.dtd.
- * Generated 2010/04/09 23:31:36.
+/* Validating XML processor for /home/navarrop/Developments/simgrid/src/simdag/dax.dtd.
+ * Generated 2010/06/17 19:11:52.
*
* This program was generated with the FleXML XML processor generator.
* FleXML is Copyright (C) 1999-2005 Kristoffer Rose. All rights reserved.
-/* XML processor/application API for simdag/dax.dtd.
- * Generated 2010/04/09 23:31:36.
+/* XML processor/application API for src/simdag/dax.dtd.
+ * Generated 2010/06/17 19:11:52.
*
* This program was generated with the FleXML XML processor generator.
* FleXML is Copyright (C) 1999-2005 Kristoffer Rose. All rights reserved.
extern xbt_test_unit_t _xbt_current_unit;
/* SGU: BEGIN PROTOTYPES */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/cunit.c */
+ /* SGU: BEGIN FILE xbt/cunit.c */
void test_expected_failure(void);
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/ex.c */
+ /* SGU: BEGIN FILE xbt/ex.c */
void test_controlflow(void);
void test_value(void);
void test_variables(void);
void test_cleanup(void);
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/dynar.c */
+ /* SGU: BEGIN FILE xbt/dynar.c */
void test_dynar_int(void);
void test_dynar_double(void);
void test_dynar_string(void);
void test_dynar_sync_int(void);
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/dict.c */
+ /* SGU: BEGIN FILE xbt/dict.c */
void test_dict_basic(void);
void test_dict_remove(void);
void test_dict_nulldata(void);
void test_dict_multicrash(void);
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/set.c */
+ /* SGU: BEGIN FILE xbt/set.c */
void test_set_basic(void);
void test_set_change(void);
void test_set_retrieve(void);
void test_set_remove(void);
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/swag.c */
+ /* SGU: BEGIN FILE xbt/swag.c */
void test_swag_basic(void);
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/xbt_str.c */
+ /* SGU: BEGIN FILE xbt/xbt_str.c */
void test_split_quoted(void);
void test_split_str(void);
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/xbt_strbuff.c */
+ /* SGU: BEGIN FILE xbt/xbt_strbuff.c */
void test_strbuff_substitute(void);
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/xbt_sha.c */
+ /* SGU: BEGIN FILE xbt/xbt_sha.c */
void test_crypto_sha(void);
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/config.c */
+ /* SGU: BEGIN FILE xbt/config.c */
void test_config_memuse(void);
void test_config_validation(void);
void test_config_use(void);
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/xbt_synchro.c */
+ /* SGU: BEGIN FILE xbt/xbt_synchro.c */
void test_dynar_dopar(void);
/* SGU: END FILE */
int res;
/* SGU: BEGIN SUITES DECLARATION */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/cunit.c */
+ /* SGU: BEGIN FILE xbt/cunit.c */
suite = xbt_test_suite_by_name("cunit","Testsuite mechanism autotest");
xbt_test_suite_push(suite, "expect", test_expected_failure, "expected failures");
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/ex.c */
+ /* SGU: BEGIN FILE xbt/ex.c */
suite = xbt_test_suite_by_name("xbt_ex","Exception Handling");
xbt_test_suite_push(suite, "controlflow", test_controlflow, "basic nested control flow");
xbt_test_suite_push(suite, "value", test_value, "exception value passing");
xbt_test_suite_push(suite, "cleanup", test_cleanup, "cleanup handling");
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/dynar.c */
+ /* SGU: BEGIN FILE xbt/dynar.c */
suite = xbt_test_suite_by_name("dynar","Dynar data container");
xbt_test_suite_push(suite, "int", test_dynar_int, "Dynars of integers");
xbt_test_suite_push(suite, "double", test_dynar_double, "Dynars of doubles");
xbt_test_suite_push(suite, "synchronized int", test_dynar_sync_int, "Synchronized dynars of integers");
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/dict.c */
+ /* SGU: BEGIN FILE xbt/dict.c */
suite = xbt_test_suite_by_name("dict","Dict data container");
xbt_test_suite_push(suite, "basic", test_dict_basic, "Basic usage: change, retrieve, traverse");
xbt_test_suite_push(suite, "remove", test_dict_remove, "Removing some values");
xbt_test_suite_push(suite, "multicrash", test_dict_multicrash, "Multi-dict crash test");
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/set.c */
+ /* SGU: BEGIN FILE xbt/set.c */
suite = xbt_test_suite_by_name("set","Set data container");
xbt_test_suite_push(suite, "basic", test_set_basic, "Basic usage");
xbt_test_suite_push(suite, "change", test_set_change, "Changing some values");
xbt_test_suite_push(suite, "remove", test_set_remove, "Removing some values");
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/swag.c */
+ /* SGU: BEGIN FILE xbt/swag.c */
suite = xbt_test_suite_by_name("swag","Swag data container");
xbt_test_suite_push(suite, "basic", test_swag_basic, "Basic usage");
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/xbt_str.c */
+ /* SGU: BEGIN FILE xbt/xbt_str.c */
suite = xbt_test_suite_by_name("xbt_str","String Handling");
xbt_test_suite_push(suite, "xbt_str_split_quoted", test_split_quoted, "test the function xbt_str_split_quoted");
xbt_test_suite_push(suite, "xbt_str_split_str", test_split_str, "test the function xbt_str_split_str");
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/xbt_strbuff.c */
+ /* SGU: BEGIN FILE xbt/xbt_strbuff.c */
suite = xbt_test_suite_by_name("xbt_strbuff","String Buffers");
xbt_test_suite_push(suite, "xbt_strbuff_substitute", test_strbuff_substitute, "test the function xbt_strbuff_substitute");
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/xbt_sha.c */
+ /* SGU: BEGIN FILE xbt/xbt_sha.c */
suite = xbt_test_suite_by_name("hash","Various hash functions");
xbt_test_suite_push(suite, "sha", test_crypto_sha, "Test of the sha algorithm");
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/config.c */
+ /* SGU: BEGIN FILE xbt/config.c */
suite = xbt_test_suite_by_name("config","Configuration support");
xbt_test_suite_push(suite, "memuse", test_config_memuse, "Alloc and free a config set");
xbt_test_suite_push(suite, "validation", test_config_validation, "Validation tests");
xbt_test_suite_push(suite, "use", test_config_use, "Data retrieving tests");
/* SGU: END FILE */
- /* SGU: BEGIN FILE /home/navarrop/Developments/simgrid/src/xbt/xbt_synchro.c */
+ /* SGU: BEGIN FILE xbt/xbt_synchro.c */
suite = xbt_test_suite_by_name("synchro","Advanced synchronization mecanisms");
xbt_test_suite_push(suite, "dopar", test_dynar_dopar, "do parallel on dynars of integers");
/* SGU: END FILE */
-#line 3 "surf/simgrid_dtd.c"
+#line 3 "src/surf/simgrid_dtd.c"
#define YY_INT_ALIGNED short int
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *surf_parse_text;
-/* Validating XML processor for /home/navarrop/Developments/simgrid/src/surf/simgrid.dtd.
- * Generated 2010/04/15 01:19:41.
+/* Validating XML processor for src/surf/simgrid.dtd.
+ * Generated 2010/06/17 19:11:51.
*
* This program was generated with the FleXML XML processor generator.
* FleXML is Copyright (C) 1999-2005 Kristoffer Rose. All rights reserved.
/* GENERATED FILE, DO NOT EDIT */
/*******************************/
-# 220 "/home/navarrop/Developments/simgrid/src/xbt/swag.c"
+#line 219 "xbt/swag.c"
typedef struct {
-#line 3 "xbt/graphxml.c"
+#line 3 "src/xbt/graphxml.c"
#define YY_INT_ALIGNED short int
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *xbt_graph_parse_text;
-/* Validating XML processor for /home/mquinson/Code/simgrid/src/xbt/graphxml.dtd.
- * Generated 2010/04/06 12:44:26.
+/* Validating XML processor for src/xbt/graphxml.dtd.
+ * Generated 2010/06/17 19:11:52.
*
* This program was generated with the FleXML XML processor generator.
* FleXML is Copyright (C) 1999-2005 Kristoffer Rose. All rights reserved.
/* GENERATED FILE, DO NOT EDIT */
/*******************************/
-# 177 "/home/navarrop/Developments/simgrid/src/xbt/xbt_sha.c"
+#line 179 "xbt/xbt_sha.c"
#include "xbt/hash.h"
#include "portable.h" /* hexa_str */
/* GENERATED FILE, DO NOT EDIT */
/*******************************/
-# 426 "/home/navarrop/Developments/simgrid/src/xbt/xbt_str.c"
+#line 423 "xbt/xbt_str.c"
#include "xbt/str.h"
#define mytest(name, input, expected) \
/* GENERATED FILE, DO NOT EDIT */
/*******************************/
-# 293 "/home/navarrop/Developments/simgrid/src/xbt/xbt_strbuff.c"
+#line 293 "xbt/xbt_strbuff.c"
#include "xbt/strbuff.h"
/* buffstr have 512 chars by default. Adding 1000 chars like this will force a resize, allowing us to test that b->used and b->size are consistent */
/* GENERATED FILE, DO NOT EDIT */
/*******************************/
-# 58 "/home/navarrop/Developments/simgrid/src/xbt/xbt_synchro.c"
+#line 59 "xbt/xbt_synchro.c"
#define NB_ELEM 50
#include "xbt/synchro.h"