Commit 9b1ca62
authored
fix(cie_thread_configurator): make spawn_non_ros2_thread node name unique using thread_name (#1243)
* fix(cie_thread_configurator): make spawn_non_ros2_thread node name unique using thread_name
Signed-off-by: atsushi421 <atsushi.yano.2@tier4.jp>
* fix: address review findings
- Add doc comment to sanitize_node_name explaining its behavior
- Add unit tests for sanitize_node_name (5 cases)
Signed-off-by: atsushi421 <atsushi.yano.2@tier4.jp>
* fix(cie_thread_configurator): address review findings
- Replace locale-dependent std::isalnum with explicit ASCII range checks
in sanitize_node_name() to avoid non-ASCII bytes passing through.
- Add missing ament_cmake_gtest test_depend to package.xml.
Signed-off-by: atsushi421 <atsushi.yano.2@tier4.jp>
---------
Signed-off-by: atsushi421 <atsushi.yano.2@tier4.jp>1 parent ccd6d60 commit 9b1ca62
4 files changed
Lines changed: 53 additions & 1 deletion
File tree
- src/agnocast_cie_thread_configurator
- include/agnocast_cie_thread_configurator
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
29 | 43 | | |
30 | 44 | | |
31 | 45 | | |
| |||
45 | 59 | | |
46 | 60 | | |
47 | 61 | | |
48 | | - | |
| 62 | + | |
| 63 | + | |
49 | 64 | | |
50 | 65 | | |
51 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments