RFR: 8321192 : j.a.PrintJob/ImageTest/ImageTest.java: Fail or skip the test if there's no printer

Phil Race prr at openjdk.org
Fri Feb 9 20:07:02 UTC 2024


On Fri, 9 Feb 2024 20:01:50 GMT, Phil Race <prr at openjdk.org> wrote:

> However, @key printer also covers the condition in this case.

Yes, if we didn't have a keyword, then it would be less reasonable to fail the test.
Like if a test requires multimon, and we don't have a keyword to support filtering such tests, THEN SkippedException might be reasonable.

Also adding that exception means you can't run without the jtreg framework, unless you provide the class as part of the test itself. I mean something has to provide that class.

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

PR Comment: https://git.openjdk.org/jdk/pull/17790#issuecomment-1936531184


More information about the client-libs-dev mailing list