From 80aaef1eea1255205eb443430744fc9e54af29cf Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Wed, 20 Sep 2023 16:47:23 -0700 Subject: [PATCH] joint_features test: reduce console spam (#543) This sets console verbosity to zero when passing NaN commands in the test to reduce console spam. Signed-off-by: Steve Peters --- test/common_test/joint_features.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/common_test/joint_features.cc b/test/common_test/joint_features.cc index 00a4e2830..2ceb48b83 100644 --- a/test/common_test/joint_features.cc +++ b/test/common_test/joint_features.cc @@ -143,7 +143,10 @@ TYPED_TEST(JointFeaturesTest, JointSetCommand) // Check that invalid velocity commands don't cause collisions to fail for (std::size_t i = 0; i < 1000; ++i) { + // Silence console spam + gz::common::Console::SetVerbosity(0); joint->SetForce(0, std::numeric_limits::quiet_NaN()); + gz::common::Console::SetVerbosity(4); // expect the position of the pendulum to stay above ground world->Step(output, state, input); auto frameData = base_link->FrameDataRelativeToWorld(); @@ -178,7 +181,10 @@ TYPED_TEST(JointFeaturesTest, JointSetCommand) // Check that invalid velocity commands don't cause collisions to fail for (std::size_t i = 0; i < 1000; ++i) { + // Silence console spam + gz::common::Console::SetVerbosity(0); joint->SetVelocityCommand(0, std::numeric_limits::quiet_NaN()); + gz::common::Console::SetVerbosity(4); // expect the position of the pendulum to stay above ground world->Step(output, state, input); auto frameData = base_link->FrameDataRelativeToWorld();