提交 54c37ab7 编写于 作者: G gangliao 提交者: GitHub

Merge pull request #3 from reyoung/mac_port

Remove main function in some unittest.
...@@ -84,10 +84,4 @@ int main(int argc, char** argv) { ...@@ -84,10 +84,4 @@ int main(int argc, char** argv) {
return ret; return ret;
} }
#else
int main(int argc, char const* argv[]) {
return 0;
}
#endif #endif
...@@ -1851,10 +1851,5 @@ int main(int argc, char** argv) { ...@@ -1851,10 +1851,5 @@ int main(int argc, char** argv) {
initMain(argc, argv); initMain(argc, argv);
return RUN_ALL_TESTS(); return RUN_ALL_TESTS();
} }
#else
int main(int argc, char const* argv[]) {
return 0;
}
#endif #endif
...@@ -249,15 +249,4 @@ TEST_F(PerturbationTest, scale_test) { ...@@ -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 #endif
...@@ -178,10 +178,4 @@ int main(int argc, char** argv) { ...@@ -178,10 +178,4 @@ int main(int argc, char** argv) {
return ret; return ret;
} }
#else
int main(int argc, char const* argv[]) {
return 0;
}
#endif #endif
...@@ -22,8 +22,3 @@ TEST(StringUtil, to) { ...@@ -22,8 +22,3 @@ TEST(StringUtil, to) {
ASSERT_DEATH(paddle::str::to<double>("12.45x23"), ".*"); ASSERT_DEATH(paddle::str::to<double>("12.45x23"), ".*");
ASSERT_DEATH(paddle::str::to<int>(""), ".*"); 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.
先完成此消息的编辑!
想要评论请 注册