Skip to content

Fix MacOS tests failures in java.hints#7926

Merged
lahodaj merged 1 commit intoapache:masterfrom
sid-srini:fix_macos_tests_failures_javahints
Oct 30, 2024
Merged

Fix MacOS tests failures in java.hints#7926
lahodaj merged 1 commit intoapache:masterfrom
sid-srini:fix_macos_tests_failures_javahints

Conversation

@sid-srini
Copy link
Copy Markdown
Contributor

The javac outputs of the following tests in java/java.hints ErrorHintsProviderTest were updated for non-mac OSes due to changes in JDK 7 updates:

Since Apple JDK was present only up till JDK 6, we no longer require the special case for MacOS since JDK 8.

Thus, making the test argument value specialMacTreatment = false for these two tests, and renaming the corresponding goldenfiles from "-nonmac.pass" suffix to ".pass" suffix, while retaining the original mac goldenfiles with the "-oldmac.pass" suffix.

@lahodaj
Copy link
Copy Markdown
Contributor

lahodaj commented Oct 30, 2024

I would suggest to drop the -oldmac.pass files. They are not used, and they are in the VCS/git history, that should be enough.

The javac outputs of the following tests in java/java.hints
ErrorHintsProviderTest were updated for non-mac OSes due to changes in
JDK 7 updates:
- testShortErrors5: [jdk-6968793](openjdk/jdk@b77effad6c6)
- testTestShortErrorsSVUIDWarning: [jdk-6957438](openjdk/jdk@1c75e97108)

Since Apple JDK was present only up till JDK 6, we no longer require the
special case for MacOS since JDK 8.

Thus, making the test argument value `specialMacTreatment = false` for
these two tests, and renaming the corresponding goldenfiles from
"-nonmac.pass" suffix to ".pass" suffix.

Signed-off-by: Siddharth Srinivasan <siddharth.srinivasan@oracle.com>
@sid-srini sid-srini force-pushed the fix_macos_tests_failures_javahints branch from c97051d to daf79f9 Compare October 30, 2024 09:42
@sid-srini
Copy link
Copy Markdown
Contributor Author

I would suggest to drop the -oldmac.pass files. They are not used, and they are in the VCS/git history, that should be enough.

Thank you @lahodaj. I've removed the old files and pushed the commit again.

@lahodaj lahodaj added Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) already fixed and removed already fixed labels Oct 30, 2024
@apache apache locked and limited conversation to collaborators Oct 30, 2024
@lahodaj lahodaj added this to the NB25 milestone Oct 30, 2024
@apache apache unlocked this conversation Oct 30, 2024
Copy link
Copy Markdown
Contributor

@lahodaj lahodaj left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

@lahodaj lahodaj merged commit 45696ba into apache:master Oct 30, 2024
@mbien mbien added the Code cleanup Label for cleanup done on the Netbeans IDE label Oct 30, 2024
@mbien
Copy link
Copy Markdown
Member

mbien commented Oct 30, 2024

awesome, thanks!

Achal1607 pushed a commit to Achal1607/netbeans that referenced this pull request Feb 21, 2025
Adding the patch for the netbeans PR apache#7926 to fix the unit test failures
in the java.hints module due to old Apple JDK 6 special treatment for the
expected output.

Signed-off-by: Siddharth Srinivasan <siddharth.srinivasan@oracle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Code cleanup Label for cleanup done on the Netbeans IDE Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants