Test XAudio guest output and child exit codes under mdbg #53

Closed
github-bot wants to merge 2 commits from gh-pr/53/head into gh-pr/53/base
Owner

@⁠philip-roy-jones on GitHub · 2026-11-21 21:34 UTC · original
test/xaudio-guest-exits → main · +62 −0 · 3 files · 2 commits · closed without merging

Library / area: GCXAudioExt and the mdbg title launcher. This contribution adds a source-only guest regression test.

Exports changed (exports.txt rows): None. The guest imports ordinal 6 from gcxaudioext.dll.

Source of the behaviour: crates/compat/gcxaudioext/exports.txt records Processor6 (0x20). The guest prints the returned mask. The test checks the child's Windows EXIT_PROCESS event. The load-only smoke in #12 checks staged DLLs inside xhost.

On unmodified main 0fc72956, guest PIDs 27908 and 17076 each printed GetXAudioDefaultProcessorForCurrentPlatform()=0x00000020, requested exit 0 and exited 0. The cmd.exe /d /c exit 37 control requested and exited 37 while mdbg returned 0. The older 6590adbe tracer reported 1 for both inputs.

Windows x64 verification (x64 VS Developer PowerShell)

.\tools\verify\run_xaudio_guest.ps1
cargo build --locked -p xmem -p acphal
cargo test --locked -p gcxaudioext
rustc --edition=2021 --test tools/dev/mdbg.rs -o target/mdbg-tests.exe
.\target\mdbg-tests.exe
  • GCXAudioExt passed 12/12 and mdbg passed 3/3. An unstaged baseline passed 9/12 in GCXAudioExt. Building the two prerequisite DLLs resolved all three failures.
  • No game or console files or binaries included.
  • Success requires the measured mask and the child's exit event.
**@⁠philip-roy-jones** on GitHub · 2026-11-21 21:34 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/53) `test/xaudio-guest-exits` → `main` · +62 −0 · 3 files · 2 commits · closed without merging **Library / area:** GCXAudioExt and the mdbg title launcher. This contribution adds a source-only guest regression test. **Exports changed (exports.txt rows):** None. The guest imports ordinal 6 from `gcxaudioext.dll`. **Source of the behaviour:** `crates/compat/gcxaudioext/exports.txt` records Processor6 (0x20). The guest prints the returned mask. The test checks the child's Windows EXIT_PROCESS event. The load-only smoke in #12 checks staged DLLs inside xhost. On unmodified main `0fc72956`, guest PIDs 27908 and 17076 each printed `GetXAudioDefaultProcessorForCurrentPlatform()=0x00000020`, requested exit 0 and exited 0. The `cmd.exe /d /c exit 37` control requested and exited 37 while mdbg returned 0. The older `6590adbe` tracer reported 1 for both inputs. **Windows x64 verification** (x64 VS Developer PowerShell) ```powershell .\tools\verify\run_xaudio_guest.ps1 cargo build --locked -p xmem -p acphal cargo test --locked -p gcxaudioext rustc --edition=2021 --test tools/dev/mdbg.rs -o target/mdbg-tests.exe .\target\mdbg-tests.exe ``` - [x] GCXAudioExt passed 12/12 and mdbg passed 3/3. An unstaged baseline passed 9/12 in GCXAudioExt. Building the two prerequisite DLLs resolved all three failures. - [x] No game or console files or binaries included. - [x] Success requires the measured mask and the child's exit event.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:08:36 +00:00
github-bot closed this pull request 2026-11-26 06:08:36 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.