Commit b699648
Murilo Marinho
test: make [4/4] ambiguity regression hermetic (rclcpp stub)
The [4/4] smoke-test step used '#include <rclcpp/rclcpp.hpp>' but the raw
g++ was not given the ROS include path, so it failed in CI with
'fatal error: rclcpp/rclcpp.hpp: No such file or directory'.
The bug under test is purely a name-lookup issue, so a minimal rclcpp stub
(class Clock; class Node) is name-lookup-identical to the real rclcpp::Clock
and rclcpp::Node and lets the test run hermetically without ROS include
plumbing. Verified: the consumer compiles with the fixed shim and fails
('reference to Clock is ambiguous') with the pre-fix shim.1 parent 9985ed4 commit b699648
1 file changed
Lines changed: 23 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
55 | | - | |
56 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
57 | 77 | | |
58 | 78 | | |
59 | 79 | | |
| |||
84 | 104 | | |
85 | 105 | | |
86 | 106 | | |
87 | | - | |
| 107 | + | |
88 | 108 | | |
89 | 109 | | |
90 | 110 | | |
0 commit comments