david.holmes at oracle.com
Mon Aug 19 22:20:17 PDT 2013
I'm no expert but I think this:
+ * @library /java/util/stream/bootlib
needs to be a relative path to the current test.
On 20/08/2013 3:03 PM, Henry Jen wrote:
> I try to move a test for Pattern.splitAsStream() into
> test/java/util/regex because that is where is should be based on
> convention. The test is now currently several layers under
> test/java/util/stream as initially developed in part of lambda testng tests.
> The move is not straightforward because it makes use of stream test
> framework which has to be included in bootclasspath.
> I added @library tag, and hopefully it picks up bootclasspath.dir
> setting from TEST.properties located in
> test/java/util/stream/bootlib/TEST/properties as that seems to be how
> stream tests works.
> This partially works. What I mean by that is, if I try to run regex test
> from a clean state, the bootclasspath is not picked up and the test
> failed as show in attached PatternTest.jtr.failed as you can see in the
> rerun section(a nice feature, BTW).
> However, if I run a stream test first and keep the JT* working folder,
> the test passes. Attached is the patch file, and you can reproduce this
> with following steps after apply attached JDK-8016846 for the test,
> $ cd jdk
> $ jtreg -v test/java/util/regex #failed
> $ jtreg -v
> $ jtreg -v test/java/util/regex #succeeded
> or combine above two steps into one also work,
> $ jtreg -v
> test/java/util/regex #succeeded
> Do I miss any option here or this is not really supported?
More information about the jtreg-use