Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

519 fail on segfault #520

Merged
merged 1 commit into from
Oct 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cmake/test_vt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,11 @@ macro(add_test_for_example_vt test_target test_exec test_list)
TARGET_NAME vt:${test_name}_${PROC}
TARGET_WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)

set_tests_properties(
vt:${test_name}_${PROC}
PROPERTIES
FAIL_REGULAR_EXPRESSION "Segmentation fault"
)
endforeach()
endmacro()
15 changes: 8 additions & 7 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,16 @@ if (${VT_HAS_GTEST} AND NOT ${VT_NO_BUILD_TESTS})
TEST_LIST ${CUR_TEST_LIST}
EXECUTE_COMMAND ${MPI_RUN_COMMAND} ${MPI_NUMPROC_FLAG} ${PROC}
)
endforeach()

set_tests_properties(
${${CUR_TEST_LIST}}
PROPERTIES TIMEOUT 60
FAIL_REGULAR_EXPRESSION "FAILED;should be deleted but never is"
PASS_REGULAR_EXPRESSION "PASSED"
)
set_tests_properties(
${${CUR_TEST_LIST}}
PROPERTIES TIMEOUT 60
FAIL_REGULAR_EXPRESSION "FAILED;should be deleted but never is;Segmentation fault"
PASS_REGULAR_EXPRESSION "PASSED"
)
endforeach()
endforeach()

endforeach()
else()
if (${VT_NO_BUILD_TESTS})
Expand Down