Skip to content

test(libc): match the immortal classic locale and run guest_locale in ctest - #1039

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
NahuelGenchi:test/guest-locale-ctest
Oct 7, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
NahuelGenchi:test/guest-locale-ctest

Conversation

@NahuelGenchi

Copy link
Copy Markdown
Contributor

What

guest_locale_tests is built but never registered in ctest, and it fails on main with Guest locale check failed. The failing check expects a release of the classic locale's last reference to throw, but ReleaseLocale now keeps the classic locale immortal on purpose: a release that would drop it to zero keeps that reference and returns null. The test now checks exactly that (null result and the count unchanged). Everything else in the test already passes, so it's registered as guest_locale so it can't go stale again, with the same Windows PATH setup the other libc tests use.

This is the failure #683 mentioned as a pre-existing, excluded guest_locale_tests failing its locale exception checks.

Tested

Ubuntu 26.04, GCC 15.2. ctest -R guest_locale passes, and I checked with a debug build that the only failing check was the release one. Not run on Windows locally, so the Windows CI job is the first run there.

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

@oneandonlydean
oneandonlydean merged commit 000f2f7 into boykopovar:main Oct 7, 2026
3 checks passed
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.

2 participants