Skip to content

Commit

Permalink
Shorten some excessively long lines of CMake (#328)
Browse files Browse the repository at this point in the history
The line length enforcement in ament_lint_cmake has been broken for some
time, but will be fixed by ament/ament_lint#236. This change brings this
package into compliance with a 120 column limit.

Signed-off-by: Scott K Logan <logans@cottsay.net>
  • Loading branch information
cottsay authored Feb 12, 2021
1 parent 7ce3c27 commit d413e13
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,8 @@ if(BUILD_TESTING)

rcutils_custom_add_gtest(test_logging_custom_env test/test_logging_custom_env.cpp
ENV
RCUTILS_CONSOLE_OUTPUT_FORMAT="[{severity}] [{time},{time_as_nanoseconds}] [{name},{function_name},{file_name}]: {line_number}-{message}"
RCUTILS_CONSOLE_OUTPUT_FORMAT=
"[{severity}] [{time},{time_as_nanoseconds}] [{name},{function_name},{file_name}]: {line_number}-{message}"
RCUTILS_CONSOLE_STDOUT_LINE_BUFFERED=1
RCUTILS_LOGGING_BUFFERED_STREAM=1
RCUTILS_LOGGING_USE_STDOUT=1
Expand All @@ -515,7 +516,8 @@ if(BUILD_TESTING)

# RCUTILS_LOGGING_MAX_OUTPUT_FORMAT_LEN is defined as 2048, truncation should occur
foreach(i RANGE 0 100)
set(_output_format "${_output_format} [{severity}] [{time},{time_as_nanoseconds}] [{name},{function_name},{file_name}]: {line_number}-{message}")
set(_output_format
"${_output_format} [{severity}] [{time},{time_as_nanoseconds}] [{name},{function_name},{file_name}]: {line_number}-{message}")
endforeach(i)
rcutils_custom_add_gtest(test_logging_custom_env2 test/test_logging_custom_env.cpp
ENV
Expand Down

0 comments on commit d413e13

Please sign in to comment.