Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
sanitize the use of logs in unit testing of parmap to fix supernovae
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 14 Dec 2010 08:46:39 +0000 (08:46 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 14 Dec 2010 08:46:39 +0000 (08:46 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9229 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/parmap.c
src/xbt/xbt_main.c

index a11f84e..0034d95 100644 (file)
@@ -6,8 +6,8 @@
 
 #include "parmap_private.h"
 
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_parmap, xbt,
-                                "parmap: parallel map");
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_parmap, xbt, "parmap: parallel map");
+XBT_LOG_NEW_SUBCATEGORY(xbt_parmap_unit, xbt_parmap, "parmap unit testing");
 
 static void *_xbt_parmap_worker_main(void *parmap);
 
@@ -176,9 +176,8 @@ static void *_xbt_parmap_worker_main(void *arg)
 #include "xbt/ex.h"
 
 XBT_TEST_SUITE("parmap", "Parallel Map");
+XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(xbt_parmap_unit);
 
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_parmap_unit, xbt,
-                                "unit parmap");
 
 
 xbt_parmap_t parmap;
index c1aec52..a3530c3 100644 (file)
@@ -46,6 +46,8 @@ XBT_LOG_EXTERNAL_CATEGORY(xbt_matrix);
 XBT_LOG_EXTERNAL_CATEGORY(xbt_queue);
 XBT_LOG_EXTERNAL_CATEGORY(xbt_set);
 XBT_LOG_EXTERNAL_CATEGORY(xbt_sync_os);
+XBT_LOG_EXTERNAL_CATEGORY(xbt_parmap);
+XBT_LOG_EXTERNAL_CATEGORY(xbt_parmap_unit);
 
 
 /* Declare xbt_preinit and xbt_postexit as constructor/destructor of the library.
@@ -117,6 +119,8 @@ static void xbt_preinit(void)
   XBT_LOG_CONNECT(xbt_queue, xbt);
   XBT_LOG_CONNECT(xbt_set, xbt);
   XBT_LOG_CONNECT(xbt_sync_os, xbt);
+  XBT_LOG_CONNECT(xbt_parmap,xbt);
+  XBT_LOG_CONNECT(xbt_parmap_unit,xbt_parmap);
 
   xbt_fifo_preinit();
   xbt_dict_preinit();