summaryrefslogtreecommitdiffstats
path: root/src/test/erasure-code/TestErasureCodePluginIsa.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/erasure-code/TestErasureCodePluginIsa.cc')
-rw-r--r--src/test/erasure-code/TestErasureCodePluginIsa.cc17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/test/erasure-code/TestErasureCodePluginIsa.cc b/src/test/erasure-code/TestErasureCodePluginIsa.cc
index e7f3e0821a4..b469596abc9 100644
--- a/src/test/erasure-code/TestErasureCodePluginIsa.cc
+++ b/src/test/erasure-code/TestErasureCodePluginIsa.cc
@@ -22,6 +22,7 @@
#include "global/global_context.h"
#include "common/config.h"
#include "gtest/gtest.h"
+#include "test/unit.h"
TEST(ErasureCodePlugin, factory)
{
@@ -52,22 +53,6 @@ TEST(ErasureCodePlugin, factory)
}
}
-int main(int argc, char **argv)
-{
- vector<const char*> args;
- argv_to_vec(argc, (const char **)argv, args);
-
- global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY, 0);
- common_init_finish(g_ceph_context);
-
- const char* env = getenv("CEPH_LIB");
- string directory(env ? env : ".libs");
- g_conf->set_val("erasure_code_dir", directory, false, false);
-
- ::testing::InitGoogleTest(&argc, argv);
- return RUN_ALL_TESTS();
-}
-
/*
* Local Variables:
* compile-command: "cd ../.. ; make -j4 &&