[jboss-jira] [JBoss JIRA] (JGRP-1740) Byteman tests fail on Windows

Richard Achmatowicz (JIRA) jira-events at lists.jboss.org
Fri Nov 22 11:55:05 EST 2013


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

Richard Achmatowicz commented on JGRP-1740:
-------------------------------------------

After some investigation, there are two problems here:
(i) Byteman scripts are not being found
(ii) Bytman agent is not getting loaded

Because of changes made to BMUnit to pick up resources frrom the classpath, the first problem can be fixed by changing
{noformat}
@BMScript(dir="scripts/<testcase class>", value="<test name>")
{noformat}
to 
{noformat}
@BMScript(dir="<testcase class>", value="<test name>")
{noformat}
and putting the directory ${conf.dir}/scripts on the byteman classpath. I've confirmed that this allows the resources to be correctly located.

However, even when the BM scripts files are located, there are problems loading the BM agent into the JVM running the test, on Windows.
This is indicated by the exception 
{noformat}
java.lang.Exception: BMUnit : Unable to identify test JVM process during agent load
{noformat}

On Windows7 with Sun JDK 7, this  happens because the call to VirtualMachine.list() returns no VM information.





 
                
> Byteman tests fail on Windows
> -----------------------------
>
>                 Key: JGRP-1740
>                 URL: https://issues.jboss.org/browse/JGRP-1740
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 3.5
>         Environment: Windows
>            Reporter: Richard Achmatowicz
>            Assignee: Bela Ban
>            Priority: Minor
>             Fix For: 3.5
>
>
> The Byteman tests in the Jgroups testsuite fail when running the testsuite on Windows. The error text is as follows:
> {noformat}
> byteman:
>    [testng] -- onStart -- byteman
>    [testng] failed config: java.io.FileNotFoundException: Rule file not found for Byteman test case org.jgroups.tests.byteman.BecomeServerTest#testSendingOfMsgsOnUnconnectedChannel
>    [testng] FAIL: [1] org.jgroups.tests.byteman.BecomeServerTest.bmngBeforeTest-Method()
>    [testng] SKIP: [1] org.jgroups.tests.byteman.BecomeServerTest.testSendingOfMsgsOnUnconnectedChannel()
>    [testng] failed config: java.io.FileNotFoundException: Rule file not found for Byteman test case org.jgroups.tests.byteman.BecomeServerTest#testSendingOfMsgsOnUnconnectedChannel
>    [testng] FAIL: [1] org.jgroups.tests.byteman.BecomeServerTest.bmngAfterTest-Method()
>    [testng] SKIP: [1] org.jgroups.tests.byteman.ForwardToCoordFailoverTest.testSendingDuringViewChange()
>    [testng] failed config: java.io.FileNotFoundException: Rule file not found for Byteman test case org.jgroups.tests.byteman.ForwardToCoordFailoverTest#testSendingDuringViewChange
>    [testng] FAIL: [1] org.jgroups.tests.byteman.ForwardToCoordFailoverTest.bmngAfterTest-Method()
>    [testng] SKIP: [1] org.jgroups.tests.byteman.MessageBeforeConnectedTest.testSendingOfMsgsOnUnconnectedChannel()
>    [testng] failed config: java.io.FileNotFoundException: Rule file not found for Byteman test case org.jgroups.tests.byteman.MessageBeforeConnectedTest#testSendingOfMsgsOnUnconnectedChannel
>    [testng] FAIL: [1] org.jgroups.tests.byteman.MessageBeforeConnectedTest.bmngAfterTest-Method()
>    [testng] SKIP: [1] org.jgroups.tests.byteman.SequencerFailoverTest.testBroadcastSequenceSenderIsB()
>    [testng] SKIP: [1] org.jgroups.tests.byteman.SequencerFailoverTest.testBroadcastSequenceSenderIsC()
>    [testng] SKIP: [1] org.jgroups.tests.byteman.SequencerFailoverTest.testFailoverWithMultipleThreadsSendingMessages()
>    [testng] SKIP: [1] org.jgroups.tests.byteman.SequencerFailoverTest.testResendingVersusNewMessages()
>    [testng] failed config: java.io.FileNotFoundException: Rule file not found for Byteman test case org.jgroups.tests.byteman.SequencerFailoverTest#testResendingVersusNewMessages
>    [testng] FAIL: [1] org.jgroups.tests.byteman.SequencerFailoverTest.bmngAfterTest-Method()
>    [testng] The tests failed.
> {noformat}

--
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