[jboss-jira] [JBoss JIRA] (JGRP-1725) JGroups testsuite output not processed correctly on Windows

Richard Achmatowicz (JIRA) jira-events at lists.jboss.org
Wed Oct 30 18:05:01 EDT 2013


    [ https://issues.jboss.org/browse/JGRP-1725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12826015#comment-12826015 ] 

Richard Achmatowicz commented on JGRP-1725:
-------------------------------------------

For a fix, I added some static code to the MyObject class which will choose a temporary filename which matches the OS type:

{noformat}
    protected static class MyOutput extends PrintStream {
        private static final String TMPFILE_NAME;
        static {
            if (Util.checkForWindows()) {
                TMPFILE_NAME = System.getProperty("java.io.tmpdir") + "\\" + "tmp.txt";
            } else {
                TMPFILE_NAME = System.getProperty("java.io.tmpdir") + "/" + "tmp.txt";
            }
        }
        final int type;

        public MyOutput(int type) throws FileNotFoundException {
            super(TMPFILE_NAME); // dummy name
            this.type=type;
            if(type != 1 && type != 2)
                throw new IllegalArgumentException("index has to be 1 or 2");
        }
       ...
{noformat}

                
> JGroups testsuite output not processed correctly on Windows
> -----------------------------------------------------------
>
>                 Key: JGRP-1725
>                 URL: https://issues.jboss.org/browse/JGRP-1725
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 3.5
>         Environment: Windows
>            Reporter: Richard Achmatowicz
>            Assignee: Bela Ban
>             Fix For: 3.5
>
>
> When running the testsuite on Windows, testsuite output ends up on the console and not in the test case reports.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list