Skip to content

Update unit tests for IBM i PASE#22837

Draft
NattyNarwhal wants to merge 7 commits into
php:masterfrom
NattyNarwhal:pase-tests
Draft

Update unit tests for IBM i PASE#22837
NattyNarwhal wants to merge 7 commits into
php:masterfrom
NattyNarwhal:pase-tests

Conversation

@NattyNarwhal

@NattyNarwhal NattyNarwhal commented Jul 20, 2026

Copy link
Copy Markdown
Member

Mostly cosmetic stuff on tests and platform differences. Sometimes these are behaviours shared with AIX, but since I don't have access to an AIX system, I only mark AIX when I can verify via docs or strongly suspect it to be the case (i.e. Solaris also being special in the same way).

There are a few more tests that fail, but I'm investigating those more throughly, as a lot are i.e. more complicated filesystem behaviour differences.

locale -a returns some bogus locales that segfault if you load them.
Skip them in this test.
I don't have an AIX system to test this with, but I suspect this is also
true for AIX, since Solaris has the same limitation and System V
heritage as well.
While it can use BSD-style niceness, it defaults to System V style
niceness, like how Solaris is.

Documented in https://www.ibm.com/docs/en/aix/7.2.0?topic=g-getpriority-setpriority-nice-subroutine
For the other proc_nice test, we skip on AIX family stuff, so it
wouldn't matter there.
IBM i doesn't have it here. I suspect this test could probably be
rewritten to not use it, but let's keep the logic the same for now.
Which doesn't seem to be in /etc/services, but another, funnier
location. We could also just skip imap here.

I have not skipped on AIX family, since I'm unsure if AIX is also
missing imap from this list as well. It seems plausible if Solaris is
also missing it.
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.

1 participant