From: wessels <> Date: Wed, 18 Apr 2007 04:39:50 +0000 (+0000) Subject: unit testing fix for tests/testNull.cc X-Git-Tag: SQUID_3_0_PRE6~75 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f463e7741098c3702fddbcbe613212d320ab25a8;p=thirdparty%2Fsquid.git unit testing fix for tests/testNull.cc note that store_dirs_rebuilding is now initialized to 1 instead of 0 --- 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 */ {