Commit a0eadd4a authored by Nils Kaminski's avatar Nils Kaminski
Browse files

Changing test(s)

parent 9e82cbd1
Pipeline #82625 failed
......@@ -164,7 +164,7 @@ public class GeneratorCPP implements Generator {
if(!((EMADynamicComponentInstanceSymbol) componentInstanceSymbol).getEventHandlers().isEmpty())
fileContents.add(EventPortValueCheck.getEventPortValueCheckFileContent());
if(((EMADynamicComponentInstanceSymbol)componentInstanceSymbol).isDynamicInstance()){
if(((EMADynamicComponentInstanceSymbol)componentInstanceSymbol).isDynamic()){
fileContents.add(DynamicHelper.getDynamicHelperFileContent());
}
}
......
......@@ -25,6 +25,11 @@ public class DynamicPortConnectDynamicInstanceTest extends AbstractSymtabTest {
test("instanceRequest.test2", "./target/generated-sources-cpp/dynamics/DynamicPortConnectDynamicInstanceTest_Test_02_Test2");
}
@Test
public void Test_03_Test3() throws IOException {
test("instanceRequest.test3", "./target/generated-sources-cpp/dynamics/DynamicPortConnectDynamicInstanceTest_Test_03_Test3");
}
protected void test(String instName, String target){
try {
TaggingResolver symtab = createSymTabAndTaggingResolver("src/test/resources/dynamics");
......
package instanceRequest;
dynamic component Test3{
port
dynamic in B a[1:4],
dynamic out B b[1:4];
component PassThroughA {
ports
in B in1,
out B out1;
connect in1 -> out1;
}
dynamic component PassThroughB {
ports
dynamic in B in1[1:4],
dynamic out B out1[1:4];
@ in1::connect && out1::connect{
connect in1[?] -> out1[?];
}
}
instance PassThroughA ptA[1:3];
instance PassThroughB ptB;
@ a::connect && b::connect {
connect a[?] -> ptA[?].in1;
connect ptA[?].out1 -> ptB.in1[?];
connect ptB.out1[?] -> b[?];
}
}
\ No newline at end of file
package testeventcomponent1;
component Not {
ports
in B a,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment