Skip to content

Commit

Permalink
Only run these tests if threading support is enabled. (#669)
Browse files Browse the repository at this point in the history
Signed-off-by: The MathWorks, Inc. <alchrist@mathworks.com>
  • Loading branch information
achristoforides committed May 12, 2022
1 parent 1e11077 commit 590616b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework/test/gtest/BundleContextTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ TEST(BundleContextTest, BundleContextThrowWhenInvalid)
<< "InstallBundles() on invalid BundleContext did not throw.";
}

#if defined(US_ENABLE_THREADING_SUPPORT)
TEST(BundleContextTest, NoSegfaultWithRegisterServiceShutdownRace)
{
cppmicroservices::Framework framework =
Expand Down Expand Up @@ -213,3 +214,4 @@ TEST(BundleContextTest, NoSegfaultWithServiceFactory)

thread.join();
}
#endif

0 comments on commit 590616b

Please sign in to comment.