From db8d05a4d0989704070cf06ce08714a674157448 Mon Sep 17 00:00:00 2001 From: gudnimg Date: Mon, 23 Dec 2024 15:00:54 +0000 Subject: [PATCH] tests: fix -Wparentheses in Github CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit warning: suggest parentheses around comparison in operand of ‘==’ [-Wparentheses] --- tests/unit/logic/stubs/main_loop_stub.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/logic/stubs/main_loop_stub.cpp b/tests/unit/logic/stubs/main_loop_stub.cpp index 631c2c5..4b70ca7 100644 --- a/tests/unit/logic/stubs/main_loop_stub.cpp +++ b/tests/unit/logic/stubs/main_loop_stub.cpp @@ -181,10 +181,10 @@ void SimulateErrDisengagingIdler(logic::CommandBase &cb, ErrorCode deferredEC) { REQUIRE(WhileCondition( cb, [&](uint32_t) { if (cb.TopLevelState() == ProgressCode::ERRDisengagingIdler) { - REQUIRE(cb.Error() == ErrorCode::RUNNING); // ensure the error gets never set while disengaging the idler + REQUIRE((cb.Error() == ErrorCode::RUNNING)); // ensure the error gets never set while disengaging the idler return true; } else { - REQUIRE(cb.Error() == deferredEC); + REQUIRE((cb.Error() == deferredEC)); return false; } },