提交 55a1a758 编写于 作者: Y Yu Yang

Disable a unittest will use large memory by grep

上级 a238b11f
...@@ -249,9 +249,4 @@ TEST_F(PerturbationTest, scale_test) { ...@@ -249,9 +249,4 @@ TEST_F(PerturbationTest, scale_test) {
} }
} }
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
#endif #endif
...@@ -9,6 +9,8 @@ add_executable( ...@@ -9,6 +9,8 @@ add_executable(
test_CustomStackTracePrint.cpp test_CustomStackTracePrint.cpp
) )
link_paddle_exe(test_CustomStackTracePrint) link_paddle_exe(test_CustomStackTracePrint)
add_test(NAME test_CustomStackTracePrint if(NOT APPLE)
COMMAND ${PROJ_ROOT}/paddle/utils/tests/test_CustomStackTracePrint.sh add_test(NAME test_CustomStackTracePrint
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) COMMAND ${PROJ_ROOT}/paddle/utils/tests/test_CustomStackTracePrint.sh
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
endif()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册