Skip to content

Commit

Permalink
Subtle fix for ament_libraries_deduplicate tests (#516)
Browse files Browse the repository at this point in the history
Evidently 'release' isn't a config keyword, but 'general' is. I also
modified the test to assert that the keyword is actually treated like a
keyword.

Signed-off-by: Scott K Logan <[email protected]>
  • Loading branch information
cottsay authored Mar 1, 2024
1 parent 34699da commit c1cf011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ament_cmake_libraries/test/test_deduplicate.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ ament_libraries_deduplicate(ACTUAL ${TEST_IN})
assert_equal("debug;foo;debug;bar;debug;baz;bar" "${ACTUAL}")

# With mismatched build configs
set(TEST_IN "debug;foo;debug;bar;debug;baz;release;bar")
set(TEST_IN "optimized;foo;optimized;bar;general;baz;general;bar")
ament_libraries_deduplicate(ACTUAL ${TEST_IN})
assert_equal("debug;foo;debug;bar;debug;baz;release;bar" "${ACTUAL}")
assert_equal("optimized;foo;optimized;bar;general;baz;general;bar" "${ACTUAL}")

0 comments on commit c1cf011

Please sign in to comment.