You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test never exercises enabled PeripheralUpgradeEvent implementation
tests/test_iarm_event_sender.c:348
run_l1_tests.sh never defines CTRLM_ENABLED, so this invocation cannot enter the PeripheralUpgradeEvent implementation; it only exercises the no-match fallback and then passes because no broadcast occurred. Consequently this test provides no coverage of the payload parsing or IARM_Bus_Call route its name claims. Compile an enabled variant and mock/assert the control-manager call (or omit this misleading case).
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Several assertions codify API-contract violations, invalid key dispatch, and missing resource cleanup.
0 open findings
Previously missed (2)
In code that hasn't changed since last review
UINPUT_init incorrectly succeeds when opening /dev/uinput fails
tests/test_uinput.c:171
This assertion treats failure to open /dev/uinput as successful initialization, contradicting the public UINPUT_init contract in key_simulator/uInputInternal.h:99-103 (“If /dev/uinput does not exist, fail” and return an error code). It also prevents the test suite from detecting the existing always-zero return bug; update UINPUT_init to return an error and assert a nonzero result here.
This issue also appears on line 265 of the same file.
Unmapped keys incorrectly emit KEY_RESERVED instead of KEY_UNKNOWN
tests/test_uinput.c:255
The test currently makes emission of KEY_RESERVED the expected behavior for an unmapped key. KEY_RESERVED is the invalid sentinel, while IrInputRemoteKeyCodes.h:134 explicitly maps KED_UNDEFINEDKEY to KEY_UNKNOWN; accepting this assertion hides the fallback bug in getKeyCode. The production fallback should emit KEY_UNKNOWN (or drop the event), and this expectation should reflect that behavior.
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
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.
No description provided.