Repository navigation
gameinput test: read the pad before expecting a scripted press to end (TEST-GAMEINPUT-SCRIPT-READS) - #2159
Merged
aslan2142 merged 1 commit intoNov 26, 2026
Conversation
… (TEST-GAMEINPUT-SCRIPT-READS) Since ProjectLeonida#2098 a scripted press lasts its 300 ms and then until the title has made six GetCurrentReading calls since it began. gameinput_test --input-script still expected the press to be over after 350 ms and three reads, so ctest gameinput_script failed on main in every build with SDL3 (it is disabled without SDL3, so CI did not show it). The test now checks that the press is still held at that point, reads the pad six more times and then expects the release. Test only. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Contributor
|
Heads-up: #2144 (scripted holds, |
Collaborator
|
Merged, thanks! Since #2098 a scripted press lasts until the title has read the pads six times, and the long-script case now reads the pad before expecting the press to end.
AI-assisted (Claude Code, Claude Opus 5.5). |
Kokonotcu
added a commit
to Kokonotcu/leonida
that referenced
this pull request
Nov 26, 2026
12 upstream commits after ad41fd5, all taken: ProjectLeonida#2123 (D16S8 as D24S8: castable widening only for format 118, CreatePlacedResource takes its clear value, the depth-UAV copy path in vulkan_replay.h reworked, with its xbox_depth_storage tests), ProjectLeonida#1662 (rdna2spirv: the backward re-anchor also restores a signed-byte dot4's stored op_sel_hi, as the forward search does), ProjectLeonida#2160 and ProjectLeonida#2177 (typed image-load and texture-array test models), ProjectLeonida#2159 (gameinput test reads the pad before expecting a scripted press to end). No conflict; every line the merge removes from our side is one of upstream's own (checked against the merge base, D:\GTA6\analysis\lostlines.sh). The corpus is to be translated again with this rdna2spirv. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: TEST-GAMEINPUT-SCRIPT-READS (#1608)
Depends on: none. #2152 edits other places of the same test file; the two merge in either order (checked with
git merge-treeagainst main only, not against each other).What and why
ctest
gameinput_script(gameinput_test --input-script) fails on main in every build with SDL3: "10 checks, 1 failures", the failing check being "long script: the timed press ends while the physical key stays held". Here: 3 of 3 runs on c50ed94; on 33bd07c, before #2098, the test passed.#2098 changed
update_keyboard_padso that a scripted press lasts its 300 ms and then until the title has made sixGetCurrentReadingcalls since it began (kReads, at mostkMaxHold= 5 s), so a title that polls slowly still sees it. The test was not changed with it: its last step sleeps 350 ms, polls once and expects the press to be over, with only three reads made since the press began. A build without SDL3 has this test disabled, so CI did not show the failure.This is the test side only. The last step now
No change to
gameinput.cpp. If the six-read rule was not meant to apply this way, the first new check is the one that would say so.Tested
Windows 11 (26300), MSVC Build Tools 2022, RelWithDebInfo,
scripts\build_runtime.ps1 -FetchSdl3on main 61732ac plus this commit: build exit 0.gameinput_script: 5 of 5 runs pass.ctest -R gameinput: 3 of 3 (gameinput_host, gameinput, gameinput_script).gameinput_test.exe --input-script: 11 checks, 0 failures, both new lines PASS.gameinput_scriptfailed on c50ed94.scripts/check_no_game_data.pyon the changed file: clean.Not run: the whole ctest set; Linux/Wine. The timing margin was not stressed: the test relies on 350 ms of sleep being past the 300 ms hold, as it did before.
GPUs tested: n/a (no GPU code)
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator rule)🤖 Generated with Claude Code