RFR(s): 8212828: (process) Change the Process launch mechanism default on Linux to be posix_spawn

Roger Riggs Roger.Riggs at oracle.com
Tue Feb 12 14:52:16 UTC 2019


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...)
>
>



More information about the core-libs-dev mailing list