From 0f65e912e756dd7a7fc10371732f444c5076edcc Mon Sep 17 00:00:00 2001 From: ispyisail Date: Fri, 16 Oct 2026 17:14:12 +1300 Subject: [PATCH] Expect a damaged-database message when recovering an overwritten page Since the integrity check on opening a .qetz database (#1499) runs before anything is read, an overwritten page is reported as "the project database is damaged", not "cannot be read". recoverLeavesOutOnlyTheDamage was written before that check and has failed on master since #1504. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01MgPFANhWgD66V3v9KVKV58 --- tests/qttest/tst_qetcontainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qttest/tst_qetcontainer.cpp b/tests/qttest/tst_qetcontainer.cpp index f6ca2bc8d..92a5b2c64 100644 --- a/tests/qttest/tst_qetcontainer.cpp +++ b/tests/qttest/tst_qetcontainer.cpp @@ -809,7 +809,7 @@ private slots: QTest::newRow("nothing") << QString() << QString() << 0 << 0; QTest::newRow("folio file missing") << QStringLiteral("folio") << QStringLiteral("is missing") << -1 << 0; QTest::newRow("wire row deleted") << QStringLiteral("row") << QStringLiteral("not in the database") << 0 << -1; - QTest::newRow("database page overwritten") << QStringLiteral("page") << QStringLiteral("cannot be read") << 0 << -1000; + QTest::newRow("database page overwritten") << QStringLiteral("page") << QStringLiteral("is damaged") << 0 << -1000; } void recoverLeavesOutOnlyTheDamage() {