From 206dda7a04f1baa25852b32a4e400ac86f685e84 Mon Sep 17 00:00:00 2001 From: cristianrosa Date: Thu, 9 Dec 2010 15:31:01 +0000 Subject: [PATCH] Do not use XBT log on unit test. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9110 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/xbt/threadpool.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/xbt/threadpool.c b/src/xbt/threadpool.c index 845951751e..f4f92cd9f0 100644 --- a/src/xbt/threadpool.c +++ b/src/xbt/threadpool.c @@ -150,15 +150,13 @@ static void *_xbt_tpool_worker_main(void *arg) XBT_TEST_SUITE("tpool", "Thread pool"); -XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_tpool_unit, xbt, "Unit test for tpool"); - xbt_tpool_t tpool; void job(void *arg); void job (void *arg) { - DEBUG1("I'm job %lu", (unsigned long)arg); + xbt_test_log1("I'm job %lu", (unsigned long)arg); } XBT_TEST_UNIT("basic", test_tpool_basic, "Basic usage") @@ -170,10 +168,8 @@ XBT_TEST_UNIT("basic", test_tpool_basic, "Basic usage") tpool = xbt_tpool_new(5, 10); for(j=0; j < 10; j++){ - DEBUG1("Round %lu", j); /* Queue some work */ for(i=0; i < 20; i++){ - DEBUG1("Queuing job %lu", i); xbt_tpool_queue_job(tpool, job, (void*)i); } /* Wait for everyone */ -- 2.20.1