diff --git a/cpp/velox/tests/CMakeLists.txt b/cpp/velox/tests/CMakeLists.txt index f3d65f127f67..dac83cd87781 100644 --- a/cpp/velox/tests/CMakeLists.txt +++ b/cpp/velox/tests/CMakeLists.txt @@ -29,8 +29,8 @@ function(add_velox_test TEST_EXEC) target_include_directories( ${TEST_EXEC} PRIVATE ${CMAKE_SOURCE_DIR}/velox ${CMAKE_SOURCE_DIR}/src ${VELOX_BUILD_PATH}/_deps/duckdb-src/src/include) - target_link_libraries(${TEST_EXEC} velox_benchmark_common GTest::gtest - GTest::gtest_main) + target_link_libraries(${TEST_EXEC} velox GTest::gtest GTest::gtest_main + google::glog) gtest_discover_tests(${TEST_EXEC} DISCOVERY_MODE PRE_TEST) endfunction() diff --git a/cpp/velox/tests/MemoryManagerTest.cc b/cpp/velox/tests/MemoryManagerTest.cc index 52f2fa8b661c..d86bd46e230d 100644 --- a/cpp/velox/tests/MemoryManagerTest.cc +++ b/cpp/velox/tests/MemoryManagerTest.cc @@ -15,7 +15,6 @@ * limitations under the License. */ -#include "benchmarks/common/BenchmarkUtils.h" #include "compute/VeloxBackend.h" #include "config/VeloxConfig.h" #include "memory/VeloxMemoryManager.h" @@ -50,7 +49,7 @@ class MemoryManagerTest : public ::testing::Test { std::unordered_map conf = { {kMemoryReservationBlockSize, std::to_string(kMemoryReservationBlockSizeDefault)}, {kVeloxMemInitCapacity, std::to_string(kVeloxMemInitCapacityDefault)}}; - initVeloxBackend(conf); + gluten::VeloxBackend::create(conf); } void SetUp() override {