Commit 6789bfe
Restrict take_event deadlock test to fastrtps and skip when not exercised
The test was registered for every rmw implementation via
call_for_each_rmw_implementation(test_api). On non-fastrtps stacks
FASTRTPS_DEFAULT_PROFILES_FILE is a no-op and a depth-1 best-effort
reader that never takes does not reliably produce SAMPLE_LOST, so
events_seen stayed 0 and the final EXPECT_GT(events_seen, 0u) failed for
a reason unrelated to any deadlock.
Guard the registration with if(rmw_implementation MATCHES "fastrtps") so
it only runs for the fastrtps variants, and change the events_seen == 0
guard from EXPECT_GT to GTEST_SKIP so an un-exercised scenario is
reported as skipped rather than a misleading pass or a spurious failure.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Thomas Moore <thomas.moore@torc.ai>1 parent 6a91217 commit 6789bfe
2 files changed
Lines changed: 25 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
321 | 327 | | |
322 | 328 | | |
323 | 329 | | |
| |||
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
218 | 223 | | |
0 commit comments