From f463e7741098c3702fddbcbe613212d320ab25a8 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Wed, 18 Apr 2007 04:39:50 +0000 Subject: [PATCH] unit testing fix for tests/testNull.cc note that store_dirs_rebuilding is now initialized to 1 instead of 0 --- src/tests/testNull.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tests/testNull.cc b/src/tests/testNull.cc index f81f1e38da..0ffd541605 100644 --- a/src/tests/testNull.cc +++ b/src/tests/testNull.cc @@ -143,14 +143,15 @@ testNull::testNullSearch() StockEventLoop loop; /* our swapdir must be scheduled to rebuild - though it does not - * make sense to rebuild Null stores at all. + * make sense to rebuild Null stores at all. store_dirs_rebuilding + * is initialized to _1_ and adding our swapdir makes it 2. */ - CPPUNIT_ASSERT_EQUAL(1, StoreController::store_dirs_rebuilding); + CPPUNIT_ASSERT_EQUAL(2, StoreController::store_dirs_rebuilding); loop.run(); /* nothing left to rebuild */ - CPPUNIT_ASSERT_EQUAL(0, StoreController::store_dirs_rebuilding); + CPPUNIT_ASSERT_EQUAL(1, StoreController::store_dirs_rebuilding); /* add an entry */ { -- 2.47.3