RFR: JDK-8209604: [TEST] rewrite com/sun/jdi shell tests to java version - step2

Chris Plummer chris.plummer at oracle.com
Mon Aug 27 21:55:36 UTC 2018


Hi Alex,

I noticed you no longer strip the trailing newline from JdbCommand. Are  
you sure when we print the command we are seeing the proper output of 
newlines (no extra ones). For example, we have the following in Jdb.java:

         System.out.println("> " + cmd.cmd);

         inputWriter.println(cmd.cmd);

This looks like it will print an extra newline in cases where it was not 
stirpped. And I should point out that on windows we see a lot of extra 
newlines in the jdb output. I thought I had tracked this down once, but 
can't find the email were I explained the cause. But your change leads 
me to think it might have been faulty stripping of the newline in 
JdbCommand, and now you are making it so it never strips.

thanks,

Chris

On 8/16/18 2:13 PM, Alex Menkov wrote:
> Hi all,
>
> Please review next chunk of shell->java test conversion.
> jira: https://bugs.openjdk.java.net/browse/JDK-8209604
> webrev: http://cr.openjdk.java.net/~amenkov/sh2java/step2/webrev/
>
> The fix contains some changes in library classes:
> Jdb.java - timeouts are updated (as per Dan note in one of previous 
> review, timeouts should respect timeout factor, Utils.adjustTimeout 
> implements the functionality);
> JdbCommand.java - new jdb commands (required by tests) are added.
>
> --alex





More information about the serviceability-dev mailing list