Issue Details (XML | Word | Printable)

Key: DERBY-3771
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Kathey Marsden
Reporter: Kathey Marsden
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

testClasspathChecker under SysinfoCPCheckTest failed on Zos

Created: 09/Jul/08 07:40 PM   Updated: 04/May/09 06:22 PM
Return to search
Component/s: Test
Affects Version/s: None
Fix Version/s: 10.4.2.0, 10.5.1.1

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works derby-3771_diff.txt 2008-07-10 03:35 PM Kathey Marsden 2 kB

Resolution Date: 10/Jul/08 06:56 PM


 Description  « Hide
estClassPathChecker(org.apache.derbyTesting.functionTests.tests
.tools.SysinfoCPCheckTest)junit.framework.ComparisonFailure:
expected:<Testing for presence of all Derby-related
libraries; typically, only some are needed.> but
was:<???????@???@????????@??@???@?????`???????@?????????^@???
??????k@????@????@???@??????K???@?@????@??@????????@?????????k@
????@????@???K??????K?????K?????K???????@`??@?????????@??@?????
@????z@@@?????@????????@??????@???????@M?????K???]@@@??????@?
?@??????@??????????@??????@??@????@??????@???@?????@???K??????K?
????K????????K????????z@??????@??????@M????K????K???????????????
??@???????????????????]@@@?????@????????@??????@???????@M????
?K???]@@@??????@??@??????@??????????@??????@??@????@??????@???@
?????@???K??????K?????K????????K????????z@??????@??????@M????K??
??K?????????????????@???????????????????]@@@?????@???????@???
???@???????@M????????K???]@@@??????@??@??????@??????????@??????
@??@????@??????@???@?????@???K??????K?????K????K????????????????
????z@??????@??????@M????K????K?????????????????@???????????????
????]@@@?????@??????@?????????@M???????????K???]@@@??????@??
@??????@??????????@??????@??@????@??????@???@?????@???K??????K??
???K????K????????????z@??????@??????@M????K????K????????????????
?@???????????????????]@@@?????@?????@???????@M??????????K???]
@@@??????@??@??????@??????????@??????@??@????@??????@???@?????@
???K??????K?????K?????K??z@??????@??????@M????K????K????????????
?????@???????????????????]???@?????@??@?????@????z@@@?????
@??????@?????????@M??????K???]@@@@M???K???K???K???K?????????@??
?@?????K]>
at
org.apache.derbyTesting.functionTests.tests.tools.SysinfoCPCheck
Test.testClassPathChecker(SysinfoCPCheckTest.java:162)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
Impl.java:59)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
AccessorImpl.java:39)
at
org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.
java:101)

I was able to reproduce this on windows with the sun 1.5 or 1.6 jvm by running with
 -Dfile.encoding="UTF-16"

 
At first glance, I think this might be a test issue.
The test sets
 final String outputEncoding = "US-ASCII"; and then
  PrintStream testOut = new
PrintStream(rawBytes,
                    false, outputEncoding);
                setSystemOut(testOut);

I'm not sure, but I think it should use the default encoding in this case instead of changing it.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Kathey Marsden added a comment - 10/Jul/08 03:35 PM
Attached is a patch for this issue. Removed the US-ASCII encoding for the print stream and used the default encoding.
The only thing I wonder about is if there was put in there intentionally for some reason.