summaryrefslogtreecommitdiffstats
path: root/src/test/compressor
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compressor')
-rw-r--r--src/test/compressor/CMakeLists.txt1
-rw-r--r--src/test/compressor/test_compression.cc7
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/compressor/CMakeLists.txt b/src/test/compressor/CMakeLists.txt
index bf63e7e2eaf..d296cdf0bea 100644
--- a/src/test/compressor/CMakeLists.txt
+++ b/src/test/compressor/CMakeLists.txt
@@ -3,6 +3,7 @@ add_library(ceph_example SHARED compressor_plugin_example.cc)
# unittest_compression
add_executable(unittest_compression
test_compression.cc
+ $<TARGET_OBJECTS:unit-main>
)
add_ceph_unittest(unittest_compression ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_compression)
target_link_libraries(unittest_compression global)
diff --git a/src/test/compressor/test_compression.cc b/src/test/compressor/test_compression.cc
index 6dbdfacd1cd..1b9782a0467 100644
--- a/src/test/compressor/test_compression.cc
+++ b/src/test/compressor/test_compression.cc
@@ -17,12 +17,11 @@
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
-#include "compressor/Compressor.h"
-#include "common/ceph_argparse.h"
-#include "global/global_context.h"
+#include "gtest/gtest.h"
#include "common/config.h"
+#include "compressor/Compressor.h"
#include "compressor/CompressionPlugin.h"
-#include "test/unit.h"
+#include "global/global_context.h"
class CompressorTest : public ::testing::Test,
public ::testing::WithParamInterface<const char*> {