Skip to content

Commit

Permalink
tests: add unit test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
MagnusS committed Aug 26, 2024
1 parent 58d70cb commit f485660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,14 @@ add_custom_target( unittests ALL

add_custom_command(TARGET unittests
POST_BUILD
COMMAND ctest --output-on-failure -L unit )
COMMAND ctest --output-on-failure -L unit --timeout 5)

add_custom_target( memcheck
DEPENDS ${TEST_BINARIES})

add_custom_command(TARGET memcheck
POST_BUILD
COMMAND ctest --output-on-failure -L memcheck)
COMMAND ctest --output-on-failure -L memcheck --timeout 5)

add_custom_target( clangtidy
DEPENDS ${TEST_BINARIES})
Expand Down

0 comments on commit f485660

Please sign in to comment.