From 113d5f437adabf93f010bb764329d86feaea0a47 Mon Sep 17 00:00:00 2001 From: Chadlia Jerad Date: Mon, 2 Dec 2024 10:13:05 +0100 Subject: [PATCH] Attempt to pass tests by manually adding prototypes to lf code --- core/src/main/resources/lib/c/reactor-c | 2 +- .../C/src/federated/transient/TransientDownstreamWithTimer.lf | 3 ++- .../federated/transient/TransientDownstreamWithTwoUpstream.lf | 3 ++- test/C/src/federated/transient/TransientHotSwap.lf | 3 ++- test/C/src/federated/transient/TransientStatePersistence.lf | 4 +++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/core/src/main/resources/lib/c/reactor-c b/core/src/main/resources/lib/c/reactor-c index 2e9fa982b4..41442f1dfa 160000 --- a/core/src/main/resources/lib/c/reactor-c +++ b/core/src/main/resources/lib/c/reactor-c @@ -1 +1 @@ -Subproject commit 2e9fa982b44791b8069217f34871b67974c52abd +Subproject commit 41442f1dfacebd05f4ac6bca181311ddcc85aa2c diff --git a/test/C/src/federated/transient/TransientDownstreamWithTimer.lf b/test/C/src/federated/transient/TransientDownstreamWithTimer.lf index 8a493b432e..b04abd3fd6 100644 --- a/test/C/src/federated/transient/TransientDownstreamWithTimer.lf +++ b/test/C/src/federated/transient/TransientDownstreamWithTimer.lf @@ -13,7 +13,8 @@ target C { preamble {= #include #include - #include "federate.h" + char* lf_get_federates_bin_directory(); + const char* lf_get_federation_id(); =} /** Persistent federate that is responsible for lauching the transient federate */ diff --git a/test/C/src/federated/transient/TransientDownstreamWithTwoUpstream.lf b/test/C/src/federated/transient/TransientDownstreamWithTwoUpstream.lf index 3fac7d04ac..8ccd6db787 100644 --- a/test/C/src/federated/transient/TransientDownstreamWithTwoUpstream.lf +++ b/test/C/src/federated/transient/TransientDownstreamWithTwoUpstream.lf @@ -19,7 +19,8 @@ import Middle from "TransientDownstreamWithTimer.lf" preamble {= #include #include - #include "federate.h" + char* lf_get_federates_bin_directory(); + const char* lf_get_federation_id(); =} /** Persistent federate that is responsible for lauching the transient federate */ diff --git a/test/C/src/federated/transient/TransientHotSwap.lf b/test/C/src/federated/transient/TransientHotSwap.lf index 4f49bf74e4..d0dbf3afbd 100644 --- a/test/C/src/federated/transient/TransientHotSwap.lf +++ b/test/C/src/federated/transient/TransientHotSwap.lf @@ -18,7 +18,8 @@ import Down from "TransientDownstreamWithTimer.lf" preamble {= #include #include - #include "federate.h" + char* lf_get_federates_bin_directory(); + const char* lf_get_federation_id(); =} /** Persistent federate that is responsible for lauching the transient federate */ diff --git a/test/C/src/federated/transient/TransientStatePersistence.lf b/test/C/src/federated/transient/TransientStatePersistence.lf index 29b932853b..5d4a7f600f 100644 --- a/test/C/src/federated/transient/TransientStatePersistence.lf +++ b/test/C/src/federated/transient/TransientStatePersistence.lf @@ -13,7 +13,9 @@ target C { preamble {= #include #include - #include "federate.h" + + char* lf_get_federates_bin_directory(); + const char* lf_get_federation_id(); // The internal federate state to be persistent across executions typedef struct federate_state_t {