You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "abhishek bafna (JIRA)" <ji...@apache.org> on 2016/04/01 15:37:25 UTC

[jira] [Commented] (OOZIE-2496) Testcase failure due to environment specific line.separator value

    [ https://issues.apache.org/jira/browse/OOZIE-2496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15221694#comment-15221694 ] 

abhishek bafna commented on OOZIE-2496:
---------------------------------------

In the _TestOozieCLI_ instead of using the hard coded "\n", updated with System.getProperty("line.separator");

The _TimestampedMessageParser_, appends the "\n" for each message. Used System.getProperty("line.separator") instead of hard coded "\n".

Please review the attached patch.

> Testcase failure due to environment specific line.separator value
> -----------------------------------------------------------------
>
>                 Key: OOZIE-2496
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2496
>             Project: Oozie
>          Issue Type: Bug
>          Components: tests
>         Environment: Windows
>            Reporter: abhishek bafna
>         Attachments: OOZIE-2496-01.patch
>
>
> The "line.separator" returns operating system specific line separator. The following testcase uses hard coded "\n" while comparing the return values in the assertion, which makes them to fail on the windows environment.
> {noformat}
> org.apache.oozie.client.TestOozieCLI#testOozieStatus
> org.apache.oozie.client.TestOozieCLI#testServerBuildVersion
> org.apache.oozie.client.TestOozieCLI#testClientBuildVersion
> {noformat}
> In the following testcase, we are using "line.separator" where as _TimestampedMessageParser_ sends the logs after appending "\n".
> {noformat}
> org.apache.oozie.util.TestXLogUserFilterParam#testloglevel_DEBUF_INFO
> org.apache.oozie.util.TestXLogUserFilterParam#testloglevel_Error
> org.apache.oozie.util.TestXLogUserFilterParam#testTextSearch
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)