test: accept all valid Windows MMDevice endpoint ID formats in audio test #24

Merged
Lum7nt merged 1 commit from upstream-pr/25 into main 2026-11-21 22:53:24 +00:00
Lum7nt commented 2026-11-21 22:45:33 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Lum7nt on 2026-11-21T22:45:33Z.


Summary

The unit test default_audio_endpoint_is_windows_default previously asserted that render endpoint IDs start strictly with {0.0.0..

On Windows systems with Bluetooth audio devices, USB headsets, or virtual sound endpoints, Windows MMDevice IDs can have prefixes like {3.0.0.00000002}.{GUID}, causing the test to fail despite returning a valid endpoint ID.

This PR updates the assertion to verify that a well-formed MMDevice ID ({...}.{...}) is returned, allowing all 151 unit tests to pass cleanly on all Windows configurations.

<!-- greyfinch-sync:ivall/xcl:issue:6535384419 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/25). Originally posted by [Lum7nt](https://github.com/Lum7nt) on 2026-11-21T22:45:33Z. --- ### Summary The unit test `default_audio_endpoint_is_windows_default` previously asserted that render endpoint IDs start strictly with `{0.0.0.`. On Windows systems with Bluetooth audio devices, USB headsets, or virtual sound endpoints, Windows MMDevice IDs can have prefixes like `{3.0.0.00000002}.{GUID}`, causing the test to fail despite returning a valid endpoint ID. This PR updates the assertion to verify that a well-formed MMDevice ID (`{...}.{...}`) is returned, allowing all 151 unit tests to pass cleanly on all Windows configurations.
upstream-sync closed this pull request 2026-11-24 06:56:48 +00:00
ivall commented 2026-11-24 07:00:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-21T22:53:21Z.


Reviewed and merged, thanks – the endpoint id check now accepts any MMDevice id. Checked together with #21, #22 and #25 on top of current main: full workspace tests pass (277 lib tests, e2e, console_dlls_e2e, gpu_pso_e2e, rpf_e2e), no new build warnings.

<!-- greyfinch-sync:ivall/xcl:comment:7070497003 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/25#issuecomment-7070497003). Originally posted by [ivall](https://github.com/ivall) on 2026-11-21T22:53:21Z. --- Reviewed and merged, thanks – the endpoint id check now accepts any MMDevice id. Checked together with #21, #22 and #25 on top of current main: full workspace tests pass (277 lib tests, e2e, console_dlls_e2e, gpu_pso_e2e, rpf_e2e), no new build warnings.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!24
No description provided.