summaryrefslogtreecommitdiffstats
path: root/src/test/erasure-code/TestErasureCode.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/erasure-code/TestErasureCode.cc')
-rw-r--r--src/test/erasure-code/TestErasureCode.cc19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/test/erasure-code/TestErasureCode.cc b/src/test/erasure-code/TestErasureCode.cc
index 47b7fa2a87a..add9c671ce7 100644
--- a/src/test/erasure-code/TestErasureCode.cc
+++ b/src/test/erasure-code/TestErasureCode.cc
@@ -17,12 +17,11 @@
#include <errno.h>
#include <stdlib.h>
-#include "global/global_init.h"
#include "erasure-code/ErasureCode.h"
-#include "common/ceph_argparse.h"
#include "global/global_context.h"
#include "common/config.h"
#include "gtest/gtest.h"
+#include "test/unit.h"
class ErasureCodeTest : public ErasureCode {
public:
@@ -153,22 +152,6 @@ TEST(ErasureCodeTest, encode_misaligned_non_contiguous)
}
}
-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 ../.. ;