Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions SilKit/IntegrationTests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_SimTask.cpp
)

add_silkit_test_to_executable(SilKitIntegrationTests
SOURCES ITest_DynStepSizes.cpp
)


add_silkit_test_to_executable(SilKitFunctionalTests
SOURCES FTest_WallClockCoupling.cpp
)
Expand Down
5 changes: 4 additions & 1 deletion SilKit/IntegrationTests/ITest_AsyncSimTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,12 @@ auto MakeCompletionThread(SimParticipant* p, ParticipantData* d) -> std::thread

TEST(ITest_AsyncSimTask, test_async_simtask_other_simulation_steps_completed_handler)
{
SimTestHarness testHarness({"A", "B", "C"}, "silkit://localhost:0");
SimTestHarness testHarness({"A", "B", "C", "D"}, "silkit://localhost:0");

const auto a = testHarness.GetParticipant("A");
const auto b = testHarness.GetParticipant("B");
const auto c = testHarness.GetParticipant("C");
const auto d = testHarness.GetParticipant("D");

ParticipantData ad, bd, cd;

Expand All @@ -316,6 +317,8 @@ TEST(ITest_AsyncSimTask, test_async_simtask_other_simulation_steps_completed_han
b->GetOrCreateLifecycleService()->SetStopHandler([&bd] { bd.running = false; });
c->GetOrCreateLifecycleService()->SetStopHandler([&cd] { cd.running = false; });

d->GetOrCreateTimeSyncService()->SetSimulationStepHandler([](auto, auto) {}, 1ms);

const auto aLifecycleService = a->GetOrCreateLifecycleService();

a->GetOrCreateTimeSyncService()->SetSimulationStepHandlerAsync([aLifecycleService, &ad](auto now, auto) {
Expand Down
Loading
Loading