test(input): the pad layout fixture includes hold_toggle.h #331
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/upscaling
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
testing wanted
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!331
Loading…
Reference in a new issue
No description provided.
Delete branch "d4nkn3ss/Longshot:fix/test-pad-layout-hold-toggle"
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?
Why
tests/test_pad_layout.pyfails on main since #137 (hold-to-toggle): its copy ofhost/nn_hid.c's binding table now declares aHoldToggle, and the fixture doesn't include the header that defines it, so the check can't compile.What changed
hid.cintests/test_pad_layout.pyincludeshost/hold_toggle.h, astests/test_bound_keys.pyalready does. No game code changes.Flags and settings
None.
Measurements
main:
5ad0f503(2026-11-13); the failure below is onba700f58and still on5ad0f503this PR: fix/test-pad-layout-hold-toggle @
bc375c20Hardware: i9-12900K, 64 GB, Windows 11 Pro 26300, llvm-mingw from the Longshot Builder
Method: a test fixture only; what is compared is the check's result, the same on every run
How to reproduce:
python -I -B tests/test_pad_layout.pyba700f58bc375c20tests/test_pad_layout.pyTesting
Tested:
python -I -B tests/test_pad_layout.py(above), andpython -I -B tests/run_all.pyon Windows 11 with llvm-mingw: 506 passed, 1 failed, 33 skipped. The one failure,tests/test_release.py, fails on main too (#119 fixes it).Not tested: Linux. The include is the same relative path
tests/test_bound_keys.pyuses there.Needs other testers: None.
Screenshots
Nothing on screen
Risk and rollback
None for the game. Reverting the commit is enough.
Issues
See #137.
Checklist
For everyone
type(scope): description).main.python -I -B tests/run_all.pyrun and passing (any failure that also fails onmainis named above).third_party/untouched (a new folder with aPROVENANCE.mdinstead).If applicable
Assisted-by:/Co-Authored-By:trailers.tests/that reads changed source updated in this PR, not weakened.🤖 Generated with Claude Code
c4fcbaea46bc375c2068Checked on Linux against main
cf605c85b:tests/test_pad_layout.pyfails there with GCC and with Clang (1 failure each), and with this one-line include merged in it passes with both. This is the one failure every whole-suite run on main has shown since #137, so merging this clears it for everyone's pull requests. Not checked here: Windows.Reviewed
bc375c2068against current main0caf06184b. No blocking correctness finding in this one-line fixture repair.The extracted binding table declares HoldToggle, and the added include supplies the actual project definition through the existing gpu/vk include search path. No assertion or product code changes. Independently reproduced the missing-type failure on main, then ran both pad-layout tests successfully at the PR head and with main integrated locally. Merge simulation against current main is clean.
Merge coordination: #338 contains this same include plus the GCC menu-fixture repair. Combining the two currently causes a one-line conflict because only #331 adds a trailing comment. Prefer merging #338 and closing this as covered; if both are retained, keep a single hold_toggle.h include. This approval is for this change on its own, not a recommendation to merge duplicate work.
Scope: focused Linux source/fixture review. No full-suite rerun, Windows run, game build or gameplay measurement by this reviewer. Assisted-by: Codex (OpenAI).
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.