From eba02ee3119946b9baa1db2dceaffeb24ae1a099 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Thu, 8 Mar 2007 07:48:42 +0000 Subject: [PATCH] Balanced each call to Tinit() with a corresponding call to Tdeinit(). --- test/lladd/check_logWriter.c | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/test/lladd/check_logWriter.c b/test/lladd/check_logWriter.c index 2c82134..e389382 100644 --- a/test/lladd/check_logWriter.c +++ b/test/lladd/check_logWriter.c @@ -145,9 +145,7 @@ START_TEST(loggerTest) assert(i == 3000); deleteLogWriter(); - LogDeinit(); - - + Tdeinit(); } END_TEST @@ -176,13 +174,8 @@ START_TEST(logHandleColdReverseIterator) { i++; FreeLogEntry(e); } - /* printf("i = %d\n", i); */ - // assert(i == 1); assert(i < 4); /* We should almost immediately hit a clr that goes to the beginning of the log... */ - // fail_unless( i == 1 , NULL); - LogDeinit(); - deleteLogWriter(); - + Tdeinit(); } END_TEST @@ -250,12 +243,9 @@ START_TEST(loggerTruncate) { } FreeLogEntry(le); } - - assert(i == (3000 - 234 + 1)); - // fail_unless(i == (3000 - 234 + 1), NULL); - - LogDeinit(); + + Tdeinit(); } END_TEST @@ -264,7 +254,6 @@ START_TEST(loggerTruncate) { pthread_mutex_t random_mutex; lsn_t truncated_to = 4; -//pthread_mutex_t truncated_to_mutex = PTHREAD_MUTEX_INITIALIZER; #define NO_CONCURRENCY #ifdef NO_CONCURRENCY