Hi Thomas,

For tests that are not applicable but should be noted,
a recent addition is throwing jtreg.SkippedException. [1]

Adding @library /test/lib to the test header
and import jtreg.SkippedException.
Throw it when appropriate.

See What if a test does not apply in a given situation? <http://openjdk.java.net/jtreg/faq.html#what-if-a-test-does-not-apply-in-a-given-situation>
http://openjdk.java.net/jtreg/faq.html#what-if-a-test-does-not-apply-in-a-given-situation

Testng is generally preferred for new test over main tests and it has its own Skipped test mechanism.

Regards, Roger

On 02/12/2019 01:41 AM, Thomas Stüfe wrote:

(As a side note, I wonder whether we could have a mechanism to signal requirements not met, eg. with a TestRequirementsNotMetException, and then let the test executor decide what to do: warn, ignore, error...)



Reply via email to