Skip to content

Update SystemPropertiesTest to work on AIX - #14579

Merged
keithc-ca merged 1 commit into
eclipse-openj9:masterfrom
pshipton:sysprop2
Feb 23, 2022
Merged

Update SystemPropertiesTest to work on AIX#14579
keithc-ca merged 1 commit into
eclipse-openj9:masterfrom
pshipton:sysprop2

Conversation

@pshipton

Copy link
Copy Markdown
Member

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is <platformRequirements>os.aix</platformRequirements> still required particularly for JDK18+?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I did try on alinux. On jdk18 everything passed except the Test 9 Test -Xnoargsconversion and on jdk17 8/10 tests failed. I expect I could fix it but I'm not convinced doing so is a good use of time. Results on other platforms may be different.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sure, other platforms can rely on OpenJDK JEP400 test coverages.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is a test for OpenJ9 command line arguments like -Xargencoding and -Xnoargsconversion

Comment thread test/functional/cmdLineTests/SystemPropertiesTest/src/SysPropTest.java Outdated
Comment thread test/functional/cmdLineTests/SystemPropertiesTest/src/SysPropTest.java Outdated
@pshipton

Copy link
Copy Markdown
Member Author

Updated to use TestUtilities and add brackets, tested via https://openj9-jenkins.osuosl.org/view/Test/job/Grinder/675/

@JasonFengJ9 JasonFengJ9 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just added a few format suggestions.
The change looks good, thanks.

Comment thread test/functional/cmdLineTests/SystemPropertiesTest/src/SysPropTest.java Outdated
Comment thread test/functional/cmdLineTests/SystemPropertiesTest/src/SysPropTest.java Outdated
Comment thread test/functional/cmdLineTests/SystemPropertiesTest/src/SysPropTest.java Outdated
Comment thread test/functional/cmdLineTests/SystemPropertiesTest/src/SysPropTest.java Outdated
Comment thread test/functional/cmdLineTests/SystemPropertiesTest/src/SysPropTest.java Outdated
Comment thread test/functional/cmdLineTests/SystemPropertiesTest/src/SysPropTest.java Outdated
On AIX with jdk18+ JEP 400 UTF-8 by default, the non-ASCII characters on
the command line are converted to UTF-8 by the test (not the JVM).

Issue eclipse-openj9#14227

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
@pshipton

pshipton commented Feb 23, 2022

Copy link
Copy Markdown
Member Author

Updated to address latest review comments, and retested https://openj9-jenkins.osuosl.org/view/Test/job/Grinder/676/

@keithc-ca
keithc-ca merged commit 40dcefd into eclipse-openj9:master Feb 23, 2022
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.

JDK18 cmdLineTester_SystemPropertiesTest_aix FAILED

3 participants