RFR: 8358697: java/awt/font/TextLayout/MyanmarTextTest.java gives false positive result on headless machines

Phil Race prr at openjdk.org
Wed Jun 18 17:03:28 UTC 2025


On Wed, 18 Jun 2025 16:20:14 GMT, Manukumar V S <mvs at openjdk.org> wrote:

> Issue:
> java/awt/font/TextLayout/MyanmarTextTest.java passes on headless machines even though it creates GUI components. Ideally, when you create some GUI components in your code in a headless machine, it should through HeadlessException, but MyanmarTextTest.java seems to suppress it and gives a positive result.
> 
> Fix:
> Need to throw jtreg.SkippedException in cases where some pre-conditions for running the test are not met.
> 
> Testing:
> Tested using mach5 in all available platforms and got full PASS.

I don't understand how what you changed related to the stated problem. In fact I don't see the point of this PR at all.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/25879#issuecomment-2985052413


More information about the client-libs-dev mailing list