From 098ed592039e73e61ecfe40f63a3022431ff68c9 Mon Sep 17 00:00:00 2001 From: Betsy McPhail Date: Tue, 20 Feb 2024 16:28:14 -0500 Subject: [PATCH] Work around test error in coverage builds (kcov 339) (#20997) Add a dummy namespace to perturb the elf header. --- systems/sensors/test/sim_rgbd_sensor_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/systems/sensors/test/sim_rgbd_sensor_test.cc b/systems/sensors/test/sim_rgbd_sensor_test.cc index cf01021485b2..1c52606b8541 100644 --- a/systems/sensors/test/sim_rgbd_sensor_test.cc +++ b/systems/sensors/test/sim_rgbd_sensor_test.cc @@ -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. @@ -312,6 +313,7 @@ TEST_F(SimRgbdSensorTest, AddPublisherTestProperties) { } } // namespace +} // namespace kcov339_avoidance_magic } // namespace internal } // namespace sensors } // namespace systems