db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kathey Marsden (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-4997) SysinfoTest version output filtering is fragile with new java versions
Date Thu, 03 Feb 2011 23:50:29 GMT

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

Kathey Marsden commented on DERBY-4997:
---------------------------------------

I have been looking at this test derbynet.SysinfoTest and it seems to me its focus is to make
sure the network server properties derby.drda.* print.  
It does this by replacing everything else with empty strings in the sed() method.  I am thinking
that we should just have the test check for the things it is looking for and not fail for
additional lines as it often does as new things are added or if jvm's have multiline version
output.

One thing to note is that  while the output checks for this test focus on network server,
this is the only test that we actually have for Sysinfo,
So it might be nice to expand it  at some point to check the other things that sysinfo outputs.
 As another aside I am seeing permission errors in the sysinfo output for java.home, user.name
and user.home. I thought this was addressed at one point, but will file an issue if needed.





> SysinfoTest  version output filtering is fragile with new java versions
> -----------------------------------------------------------------------
>
>                 Key: DERBY-4997
>                 URL: https://issues.apache.org/jira/browse/DERBY-4997
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>            Reporter: Kathey Marsden
>            Priority: Minor
>         Attachments: derby-4997_notforcommit.txt
>
>
> Some newer java version output may have lines lines that are not filtered out by the
existing SysinfoTest.  
> Myrna suggests checking for and filtering out the exact properties we expect to see to
make a better test and make it less fragile.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message