test(libSceAudioOut): run the output time bounds test with the dummy audio driver #25297

Merged
samu-mi8 merged 1 commit from upstream-pr/25297 into main 2026-11-22 01:39:47 +00:00
samu-mi8 commented 2026-11-21 21:45:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by samu-mi8 on 2026-11-21T21:45:16Z.


What

guest_audio_out_system_state_output_time_bounds opens audio ports without setting SDL_AUDIODRIVER, so SDL opens the host's real output device. The test checks the system state layout and the last output time bounds and does not depend on a real device. With WASAPI on Windows a run takes 6 to more than 10 seconds against the test's TIMEOUT 10, so it times out on some machines; with the dummy driver it finishes in about 0.2 seconds. This sets SDL_AUDIODRIVER=dummy for the test, as guest_audio_out_port_bounds and the vibration tests already do. Only the test registration changes.

Tested

Windows 11 Home (10.0.26300), Intel Core i7-10750H laptop with its default WASAPI output device, WinLibs GCC 15.2.0 r7 (x86_64-ucrt-posix-seh), Release, ctest --test-dir build -R "^guest_audio_out_system_state_output_time_bounds$", one run at a time.

Build Result
main ac8edb6c26, real device timed out 5 of 8 runs; passing runs took 6.0 to 6.8 s
main ac8edb6c26, SDL_AUDIODRIVER=dummy set by hand passed 3 of 3, 0.18 to 0.21 s
this branch on main 8763aeffdc passed 20 of 20

It also timed out in a full ctest -j 8 sweep of ac8edb6c26 and in its serial --rerun-failed. python3 tools/check_conventions.py --base upstream/main passes. tools/pr_overlap.py --branch could not compare four open PRs that conflict with main (#12863, #22585, #24322, #24917); none of them changes this test's registration.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt and the licence notice of code adapted from upstream (see AGENTS.md)
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5432734427 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/25297). Originally posted by [samu-mi8](https://github.com/samu-mi8) on 2026-11-21T21:45:16Z. --- ### What `guest_audio_out_system_state_output_time_bounds` opens audio ports without setting `SDL_AUDIODRIVER`, so SDL opens the host's real output device. The test checks the system state layout and the last output time bounds and does not depend on a real device. With WASAPI on Windows a run takes 6 to more than 10 seconds against the test's `TIMEOUT 10`, so it times out on some machines; with the dummy driver it finishes in about 0.2 seconds. This sets `SDL_AUDIODRIVER=dummy` for the test, as `guest_audio_out_port_bounds` and the vibration tests already do. Only the test registration changes. ### Tested Windows 11 Home (10.0.26300), Intel Core i7-10750H laptop with its default WASAPI output device, WinLibs GCC 15.2.0 r7 (`x86_64-ucrt-posix-seh`), Release, `ctest --test-dir build -R "^guest_audio_out_system_state_output_time_bounds$"`, one run at a time. | Build | Result | |---|---| | `main` `ac8edb6c26`, real device | timed out 5 of 8 runs; passing runs took 6.0 to 6.8 s | | `main` `ac8edb6c26`, `SDL_AUDIODRIVER=dummy` set by hand | passed 3 of 3, 0.18 to 0.21 s | | this branch on `main` `8763aeffdc` | passed 20 of 20 | It also timed out in a full `ctest -j 8` sweep of `ac8edb6c26` and in its serial `--rerun-failed`. `python3 tools/check_conventions.py --base upstream/main` passes. `tools/pr_overlap.py --branch` could not compare four open PRs that conflict with `main` (#12863, #22585, #24322, #24917); none of them changes this test's registration. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) and the licence notice of code adapted from upstream (see AGENTS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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
boykopovar/AnyPS5!25297
No description provided.