From: mquinson Date: Fri, 10 Dec 2004 11:42:21 +0000 (+0000) Subject: test local version of gras, not the installed one; more verbose messages on errors... X-Git-Tag: v3.3~4746 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e1731d8a4b9f6db24dfa0c1c50f5166cab0d62e3?ds=sidebyside test local version of gras, not the installed one; more verbose messages on errors encountered during cross-port git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@604 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/testsuite/gras/datadesc_usage.c b/testsuite/gras/datadesc_usage.c index 7af8baf7f4..1109bfb2f5 100644 --- a/testsuite/gras/datadesc_usage.c +++ b/testsuite/gras/datadesc_usage.c @@ -8,7 +8,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include -#include +#include "gras.h" #include "gras/DataDesc/datadesc_interface.h" XBT_LOG_NEW_DEFAULT_CATEGORY(test,"Logging specific to this test"); @@ -484,7 +484,9 @@ xbt_error_t test_pbio(gras_socket_t sock, int direction) { /* Check that the data match */ xbt_assert(i.Cnstatv == j.Cnstatv); for (cpt=0; cpt<12; cpt++) - xbt_assert(i.Cstatev[cpt] == j.Cstatev[cpt]); + xbt_assert4(i.Cstatev[cpt] == j.Cstatev[cpt], + "i.Cstatev[%d] (=%f) != j.Cstatev[%d] (=%f)", + cpt,i.Cstatev[cpt],cpt,j.Cstatev[cpt]); xbt_assert(i.Cnprops == j.Cnprops); for (cpt=0; cpt<110; cpt++) xbt_assert(i.Cprops[cpt] == j.Cprops[cpt]); @@ -566,7 +568,7 @@ int main(int argc,char *argv[]) { int cpt; char r_arch_char = gras_arch_selfid(); - xbt_init_defaultlog(&argc,argv,NULL); + gras_init(&argc,argv,NULL); for (cpt=1; cpt