test(delete): differential + timing regression tests for per-directory delete plans

- Compare --delete-during/--delete-delay final state against rsync 3.4.1.
- Force a mid-transfer failure through a byte-slicing proxy: --delete-during has
  removed the processed directory's extra, --delete-delay has not.
- Create a destination entry while the transfer is in flight: it survives
  --delete-delay's snapshot but is removed by --delete-after's fresh end scan.
- Cover the --delete-delay type-conflict case now matching rsync.
This commit is contained in:
2026-09-16 22:50:51 +02:00
parent 448edc0432
commit d6295d62ce
6 changed files with 312 additions and 16 deletions
+2 -2
View File
@@ -167,8 +167,8 @@ int receive_thread(void* pipeline_context) {
ReceiverSink sink = {
receiver_enqueue_file, context, false, false, NULL, receiver_pipeline_note_delete_limit};
if (receiver_process_pending((Config*)config, file_descriptor, &sink,
&context->deferred_manifest, &context->deferred_plans) != 0) {
if (receiver_process_pending((Config*)config, file_descriptor, &sink, &context->deferred_manifest,
&context->deferred_plans) != 0) {
receiver_thread_fail(context);
protocol_session_unbind();
return thrd_error;