test(libSceVideoOut): run the telemetry tests on Windows #8654

Merged
xXPBSXx merged 1 commit from upstream-pr/8654 into main 2026-10-25 22:03:02 +00:00
xXPBSXx commented 2026-10-20 20:06:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-20T20:06:10Z.


What

video_out_telemetry and video_out_telemetry_caption were registered only for non-Windows hosts (if(BUILD_TESTING AND NOT WIN32) in core/libs/prx/libSceVideoOut/CMakeLists.txt). tests/Telemetry.cpp needs getpid (_getpid from <process.h> on Windows) and a narrow path for VideoOutTelemetry::OpenFromEnvironment (std::filesystem::path::c_str() is const wchar_t* there, so the file did not compile: Telemetry.cpp:117: cannot convert 'const wchar_t*' to 'const char*'). The tests are now registered everywhere with the Windows PATH setting and configure_windows_unwind, as the other video out tests do. The caption test returns 77 (skipped) when the offscreen SDL driver has no Vulkan support, as it does here.

Tested

Windows 10 (10.0.19045), WinLibs GCC 15.2.0 Release, ctest -N -R ^video_out_telemetry lists 2 tests.

  • Registration only (no source change): video_out_telemetry_tests does not compile (error above).
  • With this change: video_out_telemetry passes 3/3; video_out_telemetry_caption skips 3/3 ("DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen)"), without configure_windows_unwind the skip path aborted instead (unhandled exception 'St13runtime_error').
  • python tools/check_conventions.py --base upstream/main: passed.
    Not tested: Linux/macOS (the registration is unconditional there as before; the only source change is a _WIN32 branch and .string() on the path). GPUs tested: n/a.

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
  • Unimplemented paths throw; no silent stubs added
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • AI-assisted: yes

AI-assisted (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4941759579 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8654). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-20T20:06:10Z. --- ### What `video_out_telemetry` and `video_out_telemetry_caption` were registered only for non-Windows hosts (`if(BUILD_TESTING AND NOT WIN32)` in `core/libs/prx/libSceVideoOut/CMakeLists.txt`). `tests/Telemetry.cpp` needs `getpid` (`_getpid` from `<process.h>` on Windows) and a narrow path for `VideoOutTelemetry::OpenFromEnvironment` (`std::filesystem::path::c_str()` is `const wchar_t*` there, so the file did not compile: `Telemetry.cpp:117: cannot convert 'const wchar_t*' to 'const char*'`). The tests are now registered everywhere with the Windows `PATH` setting and `configure_windows_unwind`, as the other video out tests do. The caption test returns 77 (skipped) when the offscreen SDL driver has no Vulkan support, as it does here. ### Tested Windows 10 (10.0.19045), WinLibs GCC 15.2.0 Release, `ctest -N -R ^video_out_telemetry` lists 2 tests. - Registration only (no source change): `video_out_telemetry_tests` does not compile (error above). - With this change: `video_out_telemetry` passes 3/3; `video_out_telemetry_caption` skips 3/3 ("DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen)"), without `configure_windows_unwind` the skip path aborted instead (`unhandled exception 'St13runtime_error'`). - `python tools/check_conventions.py --base upstream/main`: passed. Not tested: Linux/macOS (the registration is unconditional there as before; the only source change is a `_WIN32` branch and `.string()` on the path). GPUs tested: n/a. ### Checklist - [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 - [x] Unimplemented paths throw; no silent stubs added - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source (none added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] AI-assisted: yes AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
JJenkx commented 2026-10-22 13:26:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T13:26:48Z.


Independent Windows run, as data only. Machine: Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 UCRT r7, Release, BUILD_TESTING=ON, Python 3.15. #8654 (c318c70b69), #8717 (ba9e424a42) and #9000 (78bfaba736) were merged together onto main 830ccd121f, without conflicts, and each test was run 3 times.

  • video_out_telemetry passes 3 of 3.
  • video_out_telemetry_caption skips 3 of 3 with DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen), as in your report.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6341916809 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8654#issuecomment-6341916809). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-22T13:26:48Z. --- Independent Windows run, as data only. Machine: Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 UCRT r7, Release, `BUILD_TESTING=ON`, Python 3.15. #8654 (c318c70b69), #8717 (ba9e424a42) and #9000 (78bfaba736) were merged together onto `main` 830ccd121f, without conflicts, and each test was run 3 times. - `video_out_telemetry` passes 3 of 3. - `video_out_telemetry_caption` skips 3 of 3 with `DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen)`, as in your report. AI-assisted (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!8654
No description provided.