Skip to content

Commit

Permalink
test: remove unnecessary if guard before calling test command
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal committed May 6, 2024
1 parent 5b1c4b1 commit 2128148
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/cmake/AssertionTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,4 @@ function("Assert messages")
assert_message(FATAL_ERROR "expected error message '' to be equal to 'some other error message'")
endfunction()

if(NOT DEFINED TEST_COMMAND)
message(FATAL_ERROR "The 'TEST_COMMAND' variable should be defined")
elseif(NOT COMMAND "${TEST_COMMAND}")
message(FATAL_ERROR "Unable to find a command named '${TEST_COMMAND}'")
endif()

cmake_language(CALL "${TEST_COMMAND}")

0 comments on commit 2128148

Please sign in to comment.