Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
phlptp committed Nov 14, 2024
1 parent def76bd commit 2fc6cf7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/helics/shared_library/appTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,17 @@ TEST(app_tests, simple_player)

helicsAppLoadFile(play1, (std::string(APP_TEST_DIR) + "example1.player").c_str(), &err);
EXPECT_EQ(err.error_code, 0);
helicsFederateInfoSetCoreInitString(fedInfo,"",&err);

auto vFed = helicsCreateValueFederate("block1", fedInfo, &err);
std::cout << "out2\n";
auto sub1 = helicsFederateRegisterSubscription(vFed, "pub1", nullptr, &err);
auto sub2 = helicsFederateRegisterSubscription(vFed, "pub2", nullptr, &err);
auto err2 = helicsErrorInitialize();

auto thread1 = std::thread([&play1, &err2]() { helicsAppRun(play1, &err2); });
std::this_thread::sleep_for(std::chrono::milliseconds(100));
std::cout<<"out2b\n";
helicsFederateEnterExecutingMode(vFed, &err);
std::cout << "out3\n";
auto val = helicsInputGetDouble(sub1, &err);
Expand Down

0 comments on commit 2fc6cf7

Please sign in to comment.