Skip to content

test(libSceDiscMap): cover null arguments in GuestDiscMap - #11835

Closed
PrivacyOnion wants to merge 1 commit into
boykopovar:mainfrom
PrivacyOnion:test/discmap-null-args-and-package-size-stub
Closed

PrivacyOnion wants to merge 1 commit into
boykopovar:mainfrom
PrivacyOnion:test/discmap-null-args-and-package-size-stub

Conversation

@PrivacyOnion

@PrivacyOnion PrivacyOnion commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

What

Cover null argument behavior for sceDiscMapIsRequestOnHDD and sceDiscMapUnknown_ioKMruft1ek returning noBitmapInfo (0x80c30006) in GuestDiscMap.

Tested

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 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

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@PrivacyOnion please drop the sceDiscMapGetPackageSize try/catch and Require(threw) block, along with the now-unused <stdexcept> include. That export always calls NotImplemented_nid_no_patch, so the test pins an unimplemented function to throwing instead of checking argument validation. Keep the two new null-argument checks for the functions that return noBitmapInfo, and update What/Tested to match.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed head 3ad7b89 against current main. I extracted the exact GuestDiscMap test and production Export/API/SceTypes sources and compiled them with GCC 12 in C++20 mode using a minimal NotImplemented shim; the DiscMap test passed. It verifies null arguments return noBitmapInfo and the package-size path reaches the existing throwing stub. Windows product CI and eligibility, intake, conventions and labels pass; Linux and relinker jobs are path-skipped. No overlapping open implementation was found.

@github-actions

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 8647 core/libs/tests/GuestDiscMap.cpp

@PrivacyOnion
PrivacyOnion force-pushed the test/discmap-null-args-and-package-size-stub branch from 3ad7b89 to e4dee2d Compare October 27, 2026 09:51
@PrivacyOnion PrivacyOnion changed the title test(libSceDiscMap): cover null arguments and package size stub in GuestDiscMap test(libSceDiscMap): cover null arguments in GuestDiscMap Oct 27, 2026
@PrivacyOnion

Copy link
Copy Markdown
Contributor Author

@oneandonlydean Done! Dropped the \sceDiscMapGetPackageSize\ check and <stdexcept>\ include, kept the null-argument checks, and updated What/Tested accordingly.

@oneandonlydean oneandonlydean self-assigned this Oct 28, 2026

@THEMANnt THEMANnt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed e4dee2d103e6bde86fc4944e823e512414abfec0 — approve. The DiscMap cases pass null paths/output pointers and confirm the existing missing-bitmap result without dereferencing them. They test the current unsupported host path, not physical disc mapping.

Windows/GCC 15.3 Release native validation from pinned sources: head: 1 passed, 0 skipped; guest_disc_map; author base was source-compared: production sources are unchanged; its runtime was not built or executed for this review. This changes test coverage, not production behavior, so an old-production failure is not required. The build reuses matching dependency source pins and the existing FFmpeg package; no full product or game execution is claimed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants