Skip to content

Commit 996bc18

Browse files
committed
Cleanup
1 parent 26a039c commit 996bc18

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

tests/unit/helpers/types_test.cmake

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -281,23 +281,13 @@ function(can_determine_if_cmd)
281281
is_command(my_function b)
282282
assert_truthy(b MESSAGE "b should be a command (function)")
283283

284-
# Not sure if this even can be tested...
285-
# add_custom_command(TARGET my_command
286-
# PRE_BUILD
287-
# COMMAND ${CMAKE_COMMAND} -E echo hello
288-
# COMMENT "FOR TESTING PURPOSES ONLY"
289-
# VERBATIM
290-
# )
291-
# is_command(my_command c)
292-
# assert_truthy(c MESSAGE "c should be a command (custom command)")
293-
294284
set(my_var "")
295-
is_command(my_var d)
296-
assert_falsy(d MESSAGE "d should NOT be a command")
285+
is_command(my_var c)
286+
assert_falsy(c MESSAGE "c should NOT be a command")
297287

298288
set(fn_ref "my_function")
299-
is_command(fn_ref e)
300-
assert_truthy(e MESSAGE "e should be a command (reference)")
289+
is_command(fn_ref d)
290+
assert_truthy(d MESSAGE "d should be a command (reference)")
301291

302292
endfunction()
303293

0 commit comments

Comments
 (0)