Hi
Could those tests be please be written in such way that these will not fail / error under jdk 1.5 or lower?
And do you feel 100% comfortable in adding this while working on the release candidates?
Br Martijn
Author: kevj Date: Tue Dec 12 05:53:13 2006 New Revision: 486141 URL: http://svn.apache.org/viewvc?view=rev&rev=486141 Log: -test for hasfreespace condition Added: ant/core/trunk/src/tests/antunit/taskdefs/condition/hasfreespace-test.xml Added: ant/core/trunk/src/tests/antunit/taskdefs/condition/hasfreespace-test.xml URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/condition/hasfreespace-test.xml?view=auto&rev=486141 ============================================================================== --- ant/core/trunk/src/tests/antunit/taskdefs/condition/hasfreespace-test.xml (added) +++ ant/core/trunk/src/tests/antunit/taskdefs/condition/hasfreespace-test.xml Tue Dec 12 05:53:13 2006 @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<project name="hasfreespace-test" default="all" basedir="." xmlns:au="antlib:org.apache.ant.antunit"> + + <target name="test-not-enough-space-human"> + <au:assertFalse> + <hasfreespace partition="c:" needed="1P"/> + </au:assertFalse> + </target> + + <target name="test-enough-space-human"> + <au:assertTrue> + <hasfreespace partition="c:" needed="1K"/> + </au:assertTrue> + </target> + + <target name="test-not-enough-space"> + <property name="long.max-value" value="9223372036854775807"/> + <au:assertFalse> + <hasfreespace partition="c:" needed="${long.max-value}"/> + </au:assertFalse> + </target> + + <target name="test-enough-space"> + <au:assertTrue> + <hasfreespace partition="c:" needed="1"/> + </au:assertTrue> + </target> + + <target name="all"> + <au:antunit> + <fileset file="${ant.file}"/> + <au:plainlistener/> + </au:antunit> + </target> + +</project> \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]