提交 cbb90435 编写于 作者: Y Yu Yang

Remove main function in some unittest.

上级 876ab96a
......@@ -84,10 +84,4 @@ int main(int argc, char** argv) {
return ret;
}
#else
int main(int argc, char const* argv[]) {
return 0;
}
#endif
......@@ -1851,10 +1851,5 @@ int main(int argc, char** argv) {
initMain(argc, argv);
return RUN_ALL_TESTS();
}
#else
int main(int argc, char const* argv[]) {
return 0;
}
#endif
......@@ -249,15 +249,4 @@ TEST_F(PerturbationTest, scale_test) {
}
}
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
#else
int main(int argc, char const* argv[]) {
return 0;
}
#endif
......@@ -178,10 +178,4 @@ int main(int argc, char** argv) {
return ret;
}
#else
int main(int argc, char const* argv[]) {
return 0;
}
#endif
......@@ -22,8 +22,3 @@ TEST(StringUtil, to) {
ASSERT_DEATH(paddle::str::to<double>("12.45x23"), ".*");
ASSERT_DEATH(paddle::str::to<int>(""), ".*");
}
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册