RFR (S) 8007142: Add utility classes for writing better multiprocess tests in jtreg (original) (raw)

Alan Bateman Alan.Bateman at oracle.com
Fri Feb 1 06:20:11 PST 2013


On 01/02/2013 13:32, Yekaterina Kantserova wrote:

I've done some testing before I've changed JDKToolFinder. Bellow are 2 cases: 1) compile.jdk != test.jdk ./build/linux-amd64/j2sdk-image/bin/java -jar jtreg.jar -compilejdk /localhome/java/jdk1.7.009 test.java test.jdk=../build/linux-amd64/j2sdk-image/jre compile.jdk=/localhome/java/jdk1.7.009 java.home=../build/linux-amd64/j2sdk-image/jre 2) compile.jdk == test.jdk ./build/linux-amd64/j2sdk-image/bin/java -jar jtreg.jar -jdk|-testjdk /localhome/java/jdk1.7.009 test.java test.jdk /localhome/java/jdk1.7.009 compile.jdk /localhome/java/jdk1.7.009 java.home /localhome/java/jdk1.7.009/jre It seems like test.jdk is always equal to java.home (besides /jre part). Are there some rules how -jdk and -compilejdk should be used? Normally you specify the JDK/JRE to test via the -jdk option. When you only specify -jdk then you will see that test.jdk and compile.jdk have the same value.

When testing a JRE then you need to specify both -jdk and -compilejdk, the latter being the JDK to use to compile the tests. In that scenario you will see that test.jdk and compile.jdk are different (as expected).

-Alan. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20130201/c410ae63/attachment.html



More information about the serviceability-dev mailing list