| 34 | #include <chrono> |
| 35 | |
| 36 | TEST(BundleDeadLock, BundleActivatorCallsStart) |
| 37 | { |
| 38 | auto f = cppmicroservices::FrameworkFactory().NewFramework(); |
| 39 | ASSERT_TRUE(f); |
| 40 | f.Start(); |
| 41 | |
| 42 | ASSERT_NO_THROW((void)cppmicroservices::testing::InstallLib(f.GetBundleContext(), "TestBundleA")); |
| 43 | auto bundle = cppmicroservices::testing::InstallLib(f.GetBundleContext(), "TestStartBundleA"); |
| 44 | ASSERT_NO_THROW(bundle.Start()); |
| 45 | |
| 46 | f.Stop(); |
| 47 | f.WaitForStop(std::chrono::milliseconds::zero()); |
| 48 | } |
| 49 | |
| 50 | TEST(BundleDeadLock, BundleActivatorCallsStop) |
| 51 | { |
nothing calls this directly
no test coverage detected