Skip to content

test(usb): fix fake bus re-enumeration race - #19

Open
mbalous wants to merge 3 commits into
mainfrom
fix/usb-test-fake-bus-race
Open

mbalous wants to merge 3 commits into
mainfrom
fix/usb-test-fake-bus-race

Conversation

@mbalous

@mbalous mbalous commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

What and why

Serialize fake USB bus mutations so concurrent unplug and re-enumeration cannot delete directories another fake operation is writing.

Prevent a stale fake USB device from resetting or claiming a replacement on the same port. The quick-replug test now waits for the reset limit to be recorded instead of assuming it happened after a fixed sleep.

Regression tests cover concurrent bus mutations and stale-device operations. The stale reset regression fails without this fix.

Proof

  • make check passes: the local full check is blocked by missing ShellCheck and DBus development headers; CI runs it.
  • USB host tests pass normally and under ASan/UBSan.
  • PC only; test fixtures changed, not the car software.

Safety

  • No BMW file, car log, VIN, password or personal data added.
  • Nothing new is written to the car or sent on its network.
  • CHANGELOG.md updated under "Non publié": not applicable to a test-only fix.

mbalous and others added 2 commits December 4, 2026 00:01
@mbalous
mbalous enabled auto-merge (squash) December 3, 2026 23:02
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant