]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
unit testing fix for tests/testNull.cc
authorwessels <>
Wed, 18 Apr 2007 04:39:50 +0000 (04:39 +0000)
committerwessels <>
Wed, 18 Apr 2007 04:39:50 +0000 (04:39 +0000)
note that store_dirs_rebuilding is now initialized to 1 instead of 0

src/tests/testNull.cc

index f81f1e38daffa9866ae4956614427671990aec63..0ffd54160575d3a79c10117eb8c8da94491a56f5 100644 (file)
@@ -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 */
     {