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.