jtreg test case for failing VM option?

Stuart Marks stuart.marks at oracle.com
Fri Aug 23 11:03:06 PDT 2013

On 8/23/13 9:45 AM, Aleksey Shipilev wrote:
> On 08/23/2013 08:21 PM, Stuart Marks wrote:
>> Hi, yes, this is probably as much of a test of the testlibrary as
>> anything. It should be about two lines of code to do what you want. If
>> it isn't, then the testlibrary needs work!
> API seems OK to me:
>   http://cr.openjdk.java.net/~shade/8023638/webrev.00/hotspot/test/runtime/contended/Options.java.html
> Good stuff!

Ah, you're in hotspot. Yes, looks good, and in fact this is exactly the 
intended use of this test library. See similar tests in 
hotspot/test/gc/startup_warnings if you haven't already.

There is a small style point about whether these should be all one test 
or individual tests. The GC startup tests I mention above are all 
individual tests. Personally I think it's a lot of boilerplate to make 
them all individual tests, but the hotspot reviewers may think otherwise.


More information about the jtreg-use mailing list