upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/gameinput_test.cpp
diff options
context:
space:
mode:
authorsovljanskii <sovljanski04@gmail.com>2026-11-22 14:25:03 +0100
committersovljanskii <sovljanski04@gmail.com>2026-11-22 14:25:03 +0100
commit17996480d954913afc7a57fe45d6497d01c14f7f (patch)
treed94ff87d03f73cacfe1c555d2f7e73652073c7c3 /runtime/test/gameinput_test.cpp
parenta0acd33d77babe67a28e398b2936a9f735a50f5d (diff)
navmesh_index: refuse a report path that is a scanned file under another name
is_scanned_input matched the report path against --pattern with fnmatch, which folds case only on Windows. On a case-insensitive macOS (or Linux) volume, `navmesh_index.py carve --out CARVE/PAGE.BIN` found the input folder through same_report_path but didn't match *.bin, so the report truncated carve/page.bin and the tool exited 0. A hard link inside the input folder did the same on any filesystem, since the report is opened in place. When the pattern doesn't match the spelling, ask the scan's own glob whether any file it reads is the report path (same_report_path). The new test uses a hard link so it runs on the Linux and Windows CI runners, where the case test skips or already passes. AI-assisted. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/gameinput_test.cpp')
0 files changed, 0 insertions, 0 deletions