[jboss-dev-forums] [Design of JBoss internal QA (Test Suite)] - Re: AS testsuite using wrong jvm to exectute tests?

emuckenhuber do-not-reply at jboss.com
Thu Feb 12 09:11:17 EST 2009


"akostadinov" wrote : In my experience, to use java reliably, you need to have JAVA_HOME set to the jdk/jre directory.
  | 
  | AFAIU you, you are running Sun JVM to compile AS and tests but you are running it with JAVA_HOME set to the openjdk location. Is that correct? I don't think that can work properly. It could if you have -Djava.home=<jdk.path>/jre.
  | But in this case wouldn't it be easier to just set -Djunit.jvm ?

I have JAVA_HOME pointing to my jdk directory. So AS is compiled and run with this jdk. 
The only problem is that JAVA_HOME is not used for junit tests. The one on the system $PATH is used,
as the default value of ${junit.jvm} is net setUp propery.

This means in my case that JAVA_HOME is pointing to my sun-jdk-1.5 and 
the junit test is run with openjdk 1.6 (as this is the one in my system $PATH),
although it should use the one from JAVA_HOME.

So i have to set this ${junit.jvm} property to get "[testsuite]$ ./build.sh tests-profileservice" working.
Just because it's using the wrong jdk :)


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209513#4209513

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209513



More information about the jboss-dev-forums mailing list