[CTS10.0R1]CtsLibcoreTestCases模块4项fail

问题描述

org.apache.harmony.tests.java.nio.charset.CharsetEncoder2Test#testUtf8Encoding fail:
junit.framework.AssertionFailedError: expected:<3> but was:<1>
org.apache.harmony.tests.javax.security.auth.x500.X500PrincipalTest#testValidDN fail:
junit.framework.AssertionFailedError:
RFC2253: 139 parm: 'CN="\E0\90\AF"' expected: 'CN=���' returned: 'CN=Я'
RFC1779: 139 parm: 'CN="\E0\90\AF"' expected: 'CN=���' returned: 'CN=Я'
Unexpected encoding for: 139, dn= 'CN="\E0\90\AF"'
RFC2253: 140 parm: 'CN="\F0\80\90\AF"' expected: 'CN=����' returned: 'CN=Я'
RFC1779: 140 parm: 'CN="\F0\80\90\AF"' expected: 'CN=����' returned: 'CN=Я'
Unexpected encoding for: 140, dn= 'CN="\F0\80\90\AF"'
libcore.java.lang.StringTest#testFastPathString_illFormedUtf8Sequence fail:
junit.framework.ComparisonFailure: Fast-path UTF-8 decoder decodes sequence [c0 b1] into unexpected String expected:<[��]> but was:<[1]>
libcore.java.lang.StringTest#test_69599767 fail:
junit.framework.ComparisonFailure: expected:<��[�]!> but was:<��[]!>

解决方案

请申请patch
Q0.MP1:ALPS04843196

作者: RESSRC

个人资源站

发表评论

邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据