diff options
| author | Danilo M. <danix@danix.xyz> | 2026-08-19 10:08:01 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-08-19 10:08:01 +0200 |
| commit | e91a7b519f8172b0d140dfed5fba76ba96728b0a (patch) | |
| tree | c7104166f059e2789c5cd4195995e0c92e5f7791 /tests/test_tagrules.cpp | |
| parent | 830aa264f81af1a92dec9ee95bc24a9b25dee53d (diff) | |
| download | qtmaildir-e91a7b519f8172b0d140dfed5fba76ba96728b0a.tar.gz qtmaildir-e91a7b519f8172b0d140dfed5fba76ba96728b0a.zip | |
test: assert a move that relocates nothing writes no tag
The spec's ordering bullet had only half a test. moveMessagesReportsOnlyWhatMoved()
covers the worker refusing to report a message it did not move; nothing covered
the window writing tags only for what the worker reported.
The failure is provoked by putting a FILE where the trash folder must go, so
the Maildir subdirectories cannot be created under it. A read-only directory
would be ignored by a test running as root, which this must not depend on.
A tag written anyway is the exact half-done state item 103 removes: a message
marked deleted, its file still in the inbox, and its origin tag lying about
where it went. The mutation putting that back fails this test.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_tagrules.cpp')
0 files changed, 0 insertions, 0 deletions
