You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Brosnan, Michael" <mi...@fmr.com> on 2008/08/29 18:17:22 UTC
Commons-io 1.4 build: unit tests failing
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.
Re: Commons-io 1.4 build: unit tests failing
Posted by Niall Pemberton <ni...@gmail.com>.
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
<mi...@fmr.com> 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: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org