From 1e138435511538320a011a5dd8af80ecba47233d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez?= Date: Wed, 10 Apr 2024 10:55:22 +0200 Subject: [PATCH] Refs #20242. Fix log thread being killed in windows on unit test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González --- fastdds.repos | 4 ++++ .../dds/xtypes/type_representation/TypeObjectUtilsTests.cpp | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/fastdds.repos b/fastdds.repos index 0d5f2cd521..6a55ddd1ff 100644 --- a/fastdds.repos +++ b/fastdds.repos @@ -15,3 +15,7 @@ repositories: type: git url: https://github.com/eProsima/Fast-DDS-Gen.git version: 4.0.x-devel + googletest-distribution: + type: git + url: https://github.com/google/googletest.git + version: release-1.11.0 diff --git a/test/unittest/dds/xtypes/type_representation/TypeObjectUtilsTests.cpp b/test/unittest/dds/xtypes/type_representation/TypeObjectUtilsTests.cpp index 48d20f3f58..55cbd0b5d6 100644 --- a/test/unittest/dds/xtypes/type_representation/TypeObjectUtilsTests.cpp +++ b/test/unittest/dds/xtypes/type_representation/TypeObjectUtilsTests.cpp @@ -3451,5 +3451,7 @@ int main( char** argv) { testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); + int ret_value = RUN_ALL_TESTS(); + eprosima::fastdds::dds::Log::KillThread(); + return ret_value; }