Skip to content

run/locale.t: Skip tests if no appropriate locale #23273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 13, 2025

Conversation

khwilliamson
Copy link
Contributor

Supercedes #23268, which didn't really get to the core problem.

These were generating uninitialized variable warnings on OpenBSD, due to
the reference existing, but the array being empty.

  • This set of changes does not require a perldelta entry.

The desired value has already been cached under a different name.
Supercedes Perl#23268, which didn't really get to the core problem.

These were generating uninitialized variable warnings on OpenBSD, due to
the reference existing, but the array being empty.
@jkeenan
Copy link
Contributor

jkeenan commented May 11, 2025

This is what I'm now getting with this branch on OpenBSD-6.9:

$ cd t;./perl harness -v run/locale.t; cd -

ok 1 - /il matching of [bracketed] doesn't skip POSIX class if fails individ char
ok 2 - /l matching of [bracketed] doesn't skip non-first POSIX class
ok 3 # skip didn't find a suitable locale
ok 4 # skip didn't find a suitable non-UTF-8 locale
ok 5 # skip didn't find a suitable UTF-8 locale
ok 6 # skip didn't find a suitable UTF-8 locale
ok 7 # skip didn't find a suitable UTF-8 locale
ok 8 # skip Even illegal locale names are accepted
ok
All tests successful.
Files=1, Tests=8,  0 wallclock secs ( 0.02 usr  0.05 sys +  0.21 cusr  0.12 csys =  0.40 CPU)
Result: PASS
Finished test run at Sun May 11 17:58:41 2025.

Is that what you would expect?

@khwilliamson
Copy link
Contributor Author

khwilliamson commented May 11, 2025 via email

@khwilliamson khwilliamson merged commit 072a106 into Perl:blead May 13, 2025
34 checks passed
@khwilliamson khwilliamson deleted the openbsd branch May 13, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants