Check command ownership independently of the uasync timer pool

This commit is contained in:
evgeny committed 2026-10-28 00:59:00 +01:00
1 parent 56ca2ed928
commit 997b965c7e
1 file changed
+4 -1
+4 -1
View File
@@ -263,9 +263,12 @@ private slots:
const bool saved = (outcome == Executed || outcome == Destroyed) && i + 1 != position;
QCOMPARE(core.db.getUiState(keys[i]), saved ? values[i] : QString());
}
if (outcome != Destroyed) QCOMPARE(u_get_allocated_count(), baseline);
// poll может расширить пул таймеров uasync; владение командами проверяется отдельно по местам выделения.
if (outcome == Unavailable || outcome == Cancelled) QCOMPARE(u_get_allocated_count(), baseline);
#ifdef UTUN_TEST_SETTINGS_ALLOC_FAILURES
QCOMPARE(failAllocation, 0);
for (const auto& item : outstanding)
DEBUG_ERROR(DEBUG_CATEGORY_CONFIG, "Unfreed UI setting command ptr=%p source=%s", item.first, item.second);
QCOMPARE(outstanding.size(), size_t(0));
#endif
DEBUG_INFO(DEBUG_CATEGORY_CONFIG, "Window geometry verified: outcome=%d failed_setting=%d payload=%d queued=%d",