From: Sun Yuechi Date: Fri, 29 May 2026 08:15:27 +0000 (+0800) Subject: test/mds: don't drop await_idle_v under NDEBUG X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5a83c603876ad5b1fd8bd71044b624e9819a7832;p=ceph.git test/mds: don't drop await_idle_v under NDEBUG await_idle_v() is wrapped in assert(), so with NDEBUG it is never called and the test reads a default-constructed ack, racing the agent thread. Use EXPECT_TRUE() like the rest of the file. Signed-off-by: Sun Yuechi --- diff --git a/src/test/mds/TestQuiesceAgent.cc b/src/test/mds/TestQuiesceAgent.cc index aa108075faa..7940d8a5004 100644 --- a/src/test/mds/TestQuiesceAgent.cc +++ b/src/test/mds/TestQuiesceAgent.cc @@ -192,7 +192,7 @@ class QuiesceAgentTest : public testing::Test { if (WaitForAgent::No == wait) { return std::nullopt; } else { - assert(await_idle_v(v.set_version)); + EXPECT_TRUE(await_idle_v(v.set_version)); return async_ack; } }