Skip to content

Commit

Permalink
Merge pull request #3 from reyoung/mac_port
Browse files Browse the repository at this point in the history
Remove main function in some unittest.
  • Loading branch information
gangliao committed Sep 29, 2016
2 parents 876ab96 + cbb9043 commit 54c37ab
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 33 deletions.
6 changes: 0 additions & 6 deletions paddle/math/tests/test_CpuGpuVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,4 @@ int main(int argc, char** argv) {
return ret;
}

#else

int main(int argc, char const* argv[]) {
return 0;
}

#endif
5 changes: 0 additions & 5 deletions paddle/math/tests/test_matrixCompare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 0 additions & 11 deletions paddle/math/tests/test_perturbation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 0 additions & 6 deletions paddle/math/tests/test_sparseMatrixCompare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,4 @@ int main(int argc, char** argv) {
return ret;
}

#else

int main(int argc, char const* argv[]) {
return 0;
}

#endif
5 changes: 0 additions & 5 deletions paddle/utils/tests/test_StringUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 54c37ab

Please sign in to comment.