gtavi-probe exits 1 on an unsupported host platform even when every path translation succeeds (macOS tooling run: 2 of 53 cases fail) #8
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/JamesCicada--GTAVI-Recomp#8
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@etsukow on GitHub · 2026-11-24 08:37 UTC · original
Found while building this repository's own tooling natively on macOS arm64 (not a claimed host; CI covers MSVC/GCC/Clang on Windows and Linux, and
src/platform/platform_unsupported.cppis the intended fallback).Two cases fail there, for one reason:
gtavi_tests:platform_query_reports_host_factsattests/platform_tests.cpp:26expectsquery_platform_info().ok(), butdetail::query_os_version()returnsUnsupportedPlatformon Darwin (platform_unsupported.cpp), so the check fails.gtavi_probe_mounts:print_platform_info()intools/probe/main.cppreturns 1 when the platform query fails, andmainfolds that into the exit code before doing any path work. Running the probe with--mount/--to-posix/--to-windowsprints all three expected translations and still exits 1, which makes thetests/probe_mounts.cmakeharness reportCustom mount translation failed (1)even though the translations it checks are all present in the output.So on an unsupported host the diagnostic front end cannot be used for its main documented purpose (comparing path-translation behaviour) and its own mount test cannot run.
Options, from smallest:
--helpsays it always prints host information);__APPLE__tocurrent_platform()plus a Darwinquery_os_version()(unameworks as on Linux) and aPlatform::MacOS, which also makesgtavi_testsgreen on the tooling-only host family contributors on Apple silicon already use for the GPU work.Not a compatibility claim about the game: the guest still needs Windows or Linux hosts. Happy to implement either; the README's Platform Support table would need one line updated either way.
AI-assisted (omp).