This looks like the following bug: https://issues.apache.org/jira/browse/IO-160
...which has been fixed after the 1.4 release - you could try checking out the latest code from subversion and see if it resolves it for you: http://commons.apache.org/io/source-repository.html Niall On Fri, Aug 29, 2008 at 5:17 PM, Brosnan, Michael <[EMAIL PROTECTED]> wrote: > > > Hi > > I'm running the unit tests for commons-io on solaris, and they are failing > on the df command > > [java] There was 1 error: > [java] 1) > testGetFreeSpace_String(org.apache.commons.io.FileSystemUtilsTestCase)java.i > o.IOException: Command line 'df' did not return info as expected for path > '/'- response was [/ (/dev/vx/dsk/bootdg/rootvol):19886382 > blocks 4056495 files] > [java] at > org.apache.commons.io.FileSystemUtils.freeSpaceUnix(FileSystemUtils.java:326 > ) > [java] at > org.apache.commons.io.FileSystemUtils.freeSpaceOS(FileSystemUtils.java:196) > [java] at > org.apache.commons.io.FileSystemUtils.freeSpace(FileSystemUtils.java:137) > [java] at > org.apache.commons.io.FileSystemUtilsTestCase.testGetFreeSpace_String(FileSy > stemUtilsTestCase.java:90) > [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [java] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 > ) > [java] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl > .java:25) > [java] There was 1 failure: > [java] 1) > testIsFileNewerOlder(org.apache.commons.io.FileUtilsTestCase)junit.framework > .AssertionFailedError: Old File - Newer - Date > [java] at > org.apache.commons.io.FileUtilsTestCase.testIsFileNewerOlder(FileUtilsTestCa > se.java:532) > [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > [java] at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 > ) > [java] at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl > .java:25) > [java] > [java] FAILURES!!! > [java] Tests run: 318, Failures: 1, Errors: 1 > [java] > > BUILD FAILED > > Has anyone else seen this problem, and what changes are need to the unit > tests to get them to work on Solaris? > > > Thanks > > Mike. > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
