You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Sh...@NAI.com on 2002/06/25 22:08:33 UTC

set current dir for junit

Hi,
I got "Process fork failed." error if I set dir attribute for junit and
"yes" to fork for junit and "yes" to fork for batchtest.

What I want to do is set current working directory for junit

Any comments will be appreciated.

Thanks in advance.

Shuangli

<junit dir="tools"
	   printsummary="${junit.printsummary}" 
	   haltonerror="${junit.haltonerror}" 
	   haltonfailure="yes" 
	   fork="yes"
	   timeout="${junit.timeout}"
	   jvm="${junit.jvm}">

      <jvmarg value="${junit.jvm.options}"/>
      <sysproperty key="deploy.dir" file="${build.lib}"/>

      <classpath>
			<pathelement path="${java.class.path}/"/>
			<pathelement path="${build.classes}"/>
			<pathelement path="${build.qa.classes}"/>
			<fileset dir="${excal.base}/lib">
				<include name="**/*.jar"/>
				<include name="**/*.zip"/>
			</fileset>
			<fileset dir="${excal.base}/tools">
				<include name="**/*.jar"/>
				<include name="**/*.zip"/>
			</fileset>
      </classpath>

      <formatter type="${junit.formatter.type}"
		 usefile="${junit.formatter.usefile}"/>
	
      <batchtest todir="${build.reports}"
		 haltonerror="${junit.batchtest.haltonerror}" 
		 haltonfailure="${junit.batchtest.haltonfailure}" 
		 fork="yes">
        <fileset dir="${build.qa.classes}">
          <include name="**/TestMeta*.class"/>

        </fileset>
      </batchtest>
</junit>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: set current dir for junit

Posted by Stefan Bodewig <bo...@apache.org>.
On Tue, 25 Jun 2002, Shuangli Cao <Sh...@NAI.com> wrote:

> Hi, I got "Process fork failed." error if I set dir attribute for
> junit and "yes" to fork for junit and "yes" to fork for batchtest.

OK, we need to investigate this "Process fork failed" thing as you are
doing it the way it is supposed to work.

Which version of Ant?  Which OS?  How do you invoke Ant (i.e. do you
use the ant(.bat) we provide or are you running Ant in a different
way)?  Which Java VM?

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>