commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (IO-253) Test Failures using IBM JDK
Date Sun, 17 Oct 2010 23:31:22 GMT

    [ https://issues.apache.org/jira/browse/IO-253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12921922#action_12921922
] 

Niall Pemberton edited comment on IO-253 at 10/17/10 7:31 PM:
--------------------------------------------------------------

I have added WriterOutputStream tests for UTF-16BE and UTF-16LE - which pass using IBM JDK
1.6. I also added a "buffered" test for UTF-16 which fails on IBM JDK 1.6.

For the record, the following is the output from the tests on IBM JDK:

{code}
Testsuite: org.apache.commons.io.output.WriterOutputStreamTest
Tests run: 12, Failures: 2, Errors: 0, Time elapsed: 0.085 sec

Testcase: testUTF8WithSingleByteWrite took 0.005 sec
Testcase: testLargeUTF8WithSingleByteWrite took 0.043 sec
Testcase: testUTF8WithBufferedWrite took 0 sec
Testcase: testLargeUTF8WithBufferedWrite took 0.002 sec
Testcase: testUTF16WithSingleByteWrite took 0.005 sec
	FAILED
null expected:<[à peine arrivés nous entrâmes dans sa chambre]> but was:<[]>
junit.framework.ComparisonFailure: null expected:<[à peine arrivés nous entrâmes dans
sa chambre]> but was:<[]>
	at org.apache.commons.io.output.WriterOutputStreamTest.testWithSingleByteWrite(WriterOutputStreamTest.java:47)
	at org.apache.commons.io.output.WriterOutputStreamTest.testUTF16WithSingleByteWrite(WriterOutputStreamTest.java:81)

Testcase: testUTF16WithBufferedWrite took 0 sec
	FAILED
null expected:<[à peine arrivés nous entrâmes dans sa chambre]> but was:<[]>
junit.framework.ComparisonFailure: null expected:<[à peine arrivés nous entrâmes dans
sa chambre]> but was:<[]>
	at org.apache.commons.io.output.WriterOutputStreamTest.testWithBufferedWrite(WriterOutputStreamTest.java:61)
	at org.apache.commons.io.output.WriterOutputStreamTest.testUTF16WithBufferedWrite(WriterOutputStreamTest.java:85)

Testcase: testUTF16BEWithSingleByteWrite took 0.001 sec
Testcase: testUTF16BEWithBufferedWrite took 0 sec
Testcase: testUTF16LEWithSingleByteWrite took 0.001 sec
Testcase: testUTF16LEWithBufferedWrite took 0.001 sec
Testcase: testFlush took 0.001 sec
Testcase: testWriteImmediately took 0.001 sec
{code}

      was (Author: niallp):
    I have added WriterOutputStream tests for UTF-16BE and UTF-16LE - which pass using IBM
JDK 1.6. I also added a "buffered" test for UTF-16 which fails on IBM JDK 1.6.

For the record, the following is the output from the tests on IBM JDK:

{code}
Testsuite: org.apache.commons.io.output.WriterOutputStreamTest
Tests run: 12, Failures: 2, Errors: 0, Time elapsed: 0.1 sec

Testcase: testUTF8WithSingleByteWrite took 0.005 sec
Testcase: testLargeUTF8WithSingleByteWrite took 0.039 sec
Testcase: testUTF8WithBufferedWrite took 0 sec
Testcase: testLargeUTF8WithBufferedWrite took 0.002 sec
Testcase: testUTF16WithSingleByteWrite took 0.004 sec
	FAILED
null expected:<[à peine arrivés nous entrâmes dans sa chambre]> but was:<[]>
junit.framework.ComparisonFailure: null expected:<[à peine arrivés nous entrâmes dans
sa chambre]> but was:<[]>
	at org.apache.commons.io.output.WriterOutputStreamTest.testWithSingleByteWrite(WriterOutputStreamTest.java:47)
	at org.apache.commons.io.output.WriterOutputStreamTest.testUTF16WithSingleByteWrite(WriterOutputStreamTest.java:81)

Testcase: testLargeUTF16WithBufferedWrite took 0.003 sec
	FAILED
null expected:<...mes dans sa chambreà[ peine arrivés nous entrâmes dans sa chambreà
peine arrivés nous entrâmes dans sa chambreà peine arrivés nous entrâmes dans sa chambreà
peine arrivés nous entrâmes dans sa chambreà peine arrivés nous entrâmes dans sa chambreà
peine arrivés nous entrâmes dans sa chambreà peine arrivés nous entrâmes dans sa chambreà
peine arrivés nous entrâmes dans sa chambreà peine arrivés nous entrâmes dans sa chambre]>
but was:<...mes dans sa chambreà[]>
junit.framework.ComparisonFailure: null expected:<...mes dans sa chambreà[ peine arrivés
nous entrâmes dans sa chambreà peine arrivés nous entrâmes dans sa chambreà peine arrivés
nous entrâmes dans sa chambreà peine arrivés nous entrâmes dans sa chambreà peine arrivés
nous entrâmes dans sa chambreà peine arrivés nous entrâmes dans sa chambreà peine arrivés
nous entrâmes dans sa chambreà peine arrivés nous entrâmes dans sa chambreà peine arrivés
nous entrâmes dans sa chambre]> but was:<...mes dans sa chambreà[]>
	at org.apache.commons.io.output.WriterOutputStreamTest.testWithBufferedWrite(WriterOutputStreamTest.java:61)
	at org.apache.commons.io.output.WriterOutputStreamTest.testLargeUTF16WithBufferedWrite(WriterOutputStreamTest.java:85)

Testcase: testUTF16BEWithSingleByteWrite took 0.001 sec
Testcase: testLargeUTF16BEWithBufferedWrite took 0.009 sec
Testcase: testUTF16LEWithSingleByteWrite took 0.002 sec
Testcase: testLargeUTF16LEWithBufferedWrite took 0.008 sec
Testcase: testFlush took 0.001 sec
Testcase: testWriteImmediately took 0 sec
{code}
  
> Test Failures using IBM JDK
> ---------------------------
>
>                 Key: IO-253
>                 URL: https://issues.apache.org/jira/browse/IO-253
>             Project: Commons IO
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Niall Pemberton
>            Priority: Minor
>
> Jörg Schaible reports the following test failures in RC5 of Commons IO 2.0
>     * http://markmail.org/message/eoo5bk6n3pfsvfwk
> "IBM JDK 1.5 does not like the OOME handling in the FileCleanerTestCase and FileCleanerTrackingTestCase,
while IBM JDK 1.6 has problems with the WriterOutputStream handling UTF16."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message