test(libSceJobManager): allocate aligned test blocks without std::aligned_alloc #3332

Merged
reyani-dev merged 1 commit from upstream-pr/3332 into main 2026-10-11 08:05:17 +00:00
reyani-dev commented 2026-10-11 08:00:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-11T08:00:21Z.


What

Carries @screamm's fix from #3329 (the author is under the intake threshold). The commit is theirs, unchanged (119d59fd). I cherry-picked only this commit: their branch has an unrelated sceVoiceQoSEnd commit underneath.

Since #3170, the Windows build of the full tree fails in the new test before ctest can run:

core/libs/tests/GuestJobManager.cpp:100:67: error: 'aligned_alloc' is not a member of 'std'; did you mean 'aligned_union'?

MinGW-w64's UCRT (WinLibs GCC 15.2.0 r7, the CI toolchain) has no aligned_alloc. The test's Block now allocates with the aligned ::operator new(size, std::align_val_t{256}) and frees with the matching ::operator delete, which is standard C++17 on every host. Nothing outside the test changes.

Closes #3329.

Tested

Windows 11 (10.0.26200), WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON, on main 2bb78d2c:

  • main fails to build with the error above.
  • With this commit the full tree builds, the eight job_manager tests pass 3/3 (--repeat until-fail:3), and ctest -E "^agc_|video_out" passes 428/428.
  • check_conventions.py passes, and pr_overlap.py reports no overlap.

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 (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • 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
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4817578154 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3332). Originally posted by [reyani-dev](https://github.com/reyani-dev) on 2026-10-11T08:00:21Z. --- ### What Carries @screamm's fix from #3329 (the author is under the intake threshold). The commit is theirs, unchanged (`119d59fd`). I cherry-picked only this commit: their branch has an unrelated `sceVoiceQoSEnd` commit underneath. Since #3170, the Windows build of the full tree fails in the new test before `ctest` can run: ``` core/libs/tests/GuestJobManager.cpp:100:67: error: 'aligned_alloc' is not a member of 'std'; did you mean 'aligned_union'? ``` MinGW-w64's UCRT (WinLibs GCC 15.2.0 r7, the CI toolchain) has no `aligned_alloc`. The test's `Block` now allocates with the aligned `::operator new(size, std::align_val_t{256})` and frees with the matching `::operator delete`, which is standard C++17 on every host. Nothing outside the test changes. Closes #3329. ### Tested Windows 11 (10.0.26200), WinLibs GCC 15.2.0 r7, Release, `BUILD_TESTING=ON`, on `main` `2bb78d2c`: - `main` fails to build with the error above. - With this commit the full tree builds, the eight `job_manager` tests pass 3/3 (`--repeat until-fail:3`), and `ctest -E "^agc_|video_out"` passes 428/428. - `check_conventions.py` passes, and `pr_overlap.py` reports no overlap. ### 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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
adriadam10 commented 2026-10-11 08:05:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T08:05:14Z.


Checked on Linux: guest_job_manager builds and passes 8/8 on main + this PR. The change is limited to the test's Block: aligned operator new/operator delete with matching std::align_val_t{256} (standard C++17, same size rounding as before). Windows build confirmed by @AchrafReyani (MinGW UCRT, WinLibs GCC 15.2: main fails, PR builds, 428/428). Credit to @screamm for the fix. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6106957109 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3332#issuecomment-6106957109). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-11T08:05:14Z. --- Checked on Linux: `guest_job_manager` builds and passes 8/8 on main + this PR. The change is limited to the test's `Block`: aligned `operator new`/`operator delete` with matching `std::align_val_t{256}` (standard C++17, same size rounding as before). Windows build confirmed by @AchrafReyani (MinGW UCRT, WinLibs GCC 15.2: `main` fails, PR builds, 428/428). Credit to @screamm for the fix. Merging.
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!3332
No description provided.