-#include "squid.h"
-#include <stdexcept>
+/*
+ * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
-#include "testDiskIO.h"
-#include "Store.h"
-#include "SwapDir.h"
+#include "squid.h"
#include "DiskIO/DiskIOModule.h"
-#include "fs/ufs/ufscommon.h"
-#include "fs/coss/CossSwapDir.h"
-#include "Mem.h"
-#include "MemObject.h"
#include "HttpHeader.h"
#include "HttpReply.h"
+#include "MemObject.h"
+#include "Store.h"
#include "StoreFileSystem.h"
+#include "testDiskIO.h"
#include "testStoreSupport.h"
+#include "unitTestMain.h"
+
+#include <stdexcept>
CPPUNIT_TEST_SUITE_REGISTRATION( testDiskIO );
testDiskIO::testFindDefault()
{
DiskIOModule * module = DiskIOModule::FindDefault();
- CPPUNIT_ASSERT(module != NULL);
+#if USE_DISKIO
+ /* enabled. we expect at least ONE */
+ CPPUNIT_ASSERT(module != nullptr);
+#else
+ /* disabled. we don't expect ANY */
+ CPPUNIT_ASSERT(module == NULL);
+#endif
}
+