Skip to content

Commit

Permalink
Work around test error in coverage builds (kcov 339) (#20997)
Browse files Browse the repository at this point in the history
Add a dummy namespace to perturb the elf header.
  • Loading branch information
BetsyMcPhail authored Feb 20, 2024
1 parent 54ce513 commit 098ed59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions systems/sensors/test/sim_rgbd_sensor_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace drake {
namespace systems {
namespace sensors {
namespace internal {
namespace kcov339_avoidance_magic {
namespace {

// We need drake:: because there's also a systems::lcm namespace.
Expand Down Expand Up @@ -312,6 +313,7 @@ TEST_F(SimRgbdSensorTest, AddPublisherTestProperties) {
}

} // namespace
} // namespace kcov339_avoidance_magic
} // namespace internal
} // namespace sensors
} // namespace systems
Expand Down

0 comments on commit 098ed59

Please sign in to comment.