summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/erasure-code/CMakeLists.txt2
-rw-r--r--src/test/erasure-code/TestErasureCodePluginJerasure.cc5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/test/erasure-code/CMakeLists.txt b/src/test/erasure-code/CMakeLists.txt
index d987a1a677d..c829822bd36 100644
--- a/src/test/erasure-code/CMakeLists.txt
+++ b/src/test/erasure-code/CMakeLists.txt
@@ -81,7 +81,7 @@ target_link_libraries(unittest_erasure_code
add_executable(unittest_erasure_code_plugin_jerasure
TestErasureCodePluginJerasure.cc
)
-#add_ceph_unittest(unittest_erasure_code_plugin_jerasure ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_plugin_jerasure)
+add_ceph_unittest(unittest_erasure_code_plugin_jerasure ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_plugin_jerasure)
target_link_libraries(unittest_erasure_code_plugin_jerasure
global
osd
diff --git a/src/test/erasure-code/TestErasureCodePluginJerasure.cc b/src/test/erasure-code/TestErasureCodePluginJerasure.cc
index 9b1e1c7d389..ff90c8e35ae 100644
--- a/src/test/erasure-code/TestErasureCodePluginJerasure.cc
+++ b/src/test/erasure-code/TestErasureCodePluginJerasure.cc
@@ -20,6 +20,7 @@
#include "global/global_init.h"
#include "erasure-code/ErasureCodePlugin.h"
#include "common/ceph_argparse.h"
+#include "log/Log.h"
#include "global/global_context.h"
#include "common/config.h"
#include "gtest/gtest.h"
@@ -73,7 +74,9 @@ int main(int argc, char **argv)
g_conf->set_val("erasure_code_dir", directory, false, false);
::testing::InitGoogleTest(&argc, argv);
- return RUN_ALL_TESTS();
+ int status = RUN_ALL_TESTS();
+ g_ceph_context->_log->stop();
+ return status;
}
/*