diff --git a/tests/XrdCl/CMakeLists.txt b/tests/XrdCl/CMakeLists.txt index ca332bb1fa1..26d2e9bb48e 100644 --- a/tests/XrdCl/CMakeLists.txt +++ b/tests/XrdCl/CMakeLists.txt @@ -22,7 +22,7 @@ target_link_libraries(xrdcl-unit-tests ) target_include_directories(xrdcl-unit-tests - PRIVATE ${CMAKE_SOURCE_DIR}/src ../common + PRIVATE ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/XrdApps/XrdClJCachePlugin/ ../common ) gtest_discover_tests(xrdcl-unit-tests TEST_PREFIX XrdCl::) diff --git a/tests/XrdCl/XrdClVectorCache.cc b/tests/XrdCl/XrdClVectorCache.cc index 8eb1aa087c7..55df885a86e 100644 --- a/tests/XrdCl/XrdClVectorCache.cc +++ b/tests/XrdCl/XrdClVectorCache.cc @@ -1,6 +1,6 @@ #undef NDEBUG -#include "XrdApps/XrdClJCachePlugin/XrdClVectorCache.hh" +#include "XrdApps/XrdClJCachePlugin/vector/XrdClVectorCache.hh" #include "XrdSys/XrdSysPlatform.hh" #include @@ -31,9 +31,9 @@ TEST(VectorCacheTest, Store) } EXPECT_TRUE(bcmp(data, cdata, 100) != 0) << "Data not zeroed" << std::endl; - VectorCache cacheout ( chunks, name, data, prefix); + XrdCl::VectorCache cacheout ( chunks, name, data, prefix); EXPECT_TRUE(cacheout.store()) << "Failed to store vector read into cache" << std::endl; - VectorCache cachein ( chunks, name, cdata, prefix); + XrdCl::VectorCache cachein ( chunks, name, cdata, prefix); EXPECT_TRUE(cachein.retrieve()) << "Failed to retrieve vector read from cache" << std::endl; EXPECT_TRUE(bcmp(data, cdata, 100) == 0) << "Cached data is wrong" << std::endl; EXPECT_TRUE(truncate("/tmp/d1a4e9081bd37839e4b4f486ed8b13397ce9ffa0198edb586208d6b73e15b19a/3ec7dea73b7880fdce09e1c8f804054ae685e3dbda4d467c71ab2327ea5ad93e",99)==0) << "Failed to truncate cached file" << std::endl;