Skip to content

test(saves): cover newest-first directory order in the late-link case - #2888

Merged
hckrman101 merged 1 commit into
NotRexed:mainfrom
mooki000:test/saves-move-link-order
Nov 12, 2026
Merged

hckrman101 merged 1 commit into
NotRexed:mainfrom
mooki000:test/saves-move-link-order

Conversation

@mooki000

Copy link
Copy Markdown
Contributor

What this is for: keep the late-link regression from #2832 effective on both creation-order and newest-first directory listings, as its author asked for on that pull request (the review found the same weak spot).

What changed

In the case "a link to an entry that moves too", half of the 36 absolute links are now made before save/ exists and half after. Every existing assertion and every link stays; no product code changes.

How it was tested

Arch Linux, GCC 16.2.1 and Clang 23.1.3. The new test against the product source from before #2832 (76101111) and against main (3723fd0b), 30 runs a cell, passes/failures:

Product source + new test btrfs GCC btrfs Clang tmpfs GCC tmpfs Clang
Before #2832 0/30 0/30 0/30 0/30
Current-main base 30/0 30/0 30/0 30/0

Not measured: ext4/xfs or other real filesystem orders; Windows, where this check skips; a real game's first-start migration or real saves.

Refs #2832.

Assisted-by: GPT-6 Astra
Co-Authored-By: GPT-6 Astra noreply@openai.com

Make half the absolute links before save/ is created and half after.
Both creation-order and newest-first directory listings now visit a link
after its target has moved. Keep every existing link assertion.

Refs NotRexed#2832

Assisted-by: GPT-6 Astra
Co-Authored-By: GPT-6 Astra <noreply@openai.com>
@mooki000
mooki000 force-pushed the test/saves-move-link-order branch from 2bf8e7c to 789cb05 Compare November 12, 2026 18:42
@hckrman101
hckrman101 merged commit 4dd972a into NotRexed:main Nov 12, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant