diff options
| author | James Le Cuirot <chewi@gentoo.org> | 2023-02-18 13:41:51 +0000 |
|---|---|---|
| committer | James Le Cuirot <chewi@gentoo.org> | 2023-02-18 13:41:51 +0000 |
| commit | 28e8b9f993db07748f5a585b10f560b150b66a4d (patch) | |
| tree | b0bcbc80fbd7bdd686e86b3626d1d1e61d664629 /dev-cpp/sdbus-c++/files/0001-fix-integration-tests-for-libsystemd-v251.patch | |
| parent | 078457adfb940b3ed9addcbd287254dc52165fdc (diff) | |
| download | gentoo-28e8b9f993db07748f5a585b10f560b150b66a4d.tar.gz gentoo-28e8b9f993db07748f5a585b10f560b150b66a4d.tar.bz2 gentoo-28e8b9f993db07748f5a585b10f560b150b66a4d.zip | |
dev-cpp/sdbus-c++: Fix musl, fix systemd 251+, bump static systemd, Python 3.11
Closes: https://bugs.gentoo.org/862648
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'dev-cpp/sdbus-c++/files/0001-fix-integration-tests-for-libsystemd-v251.patch')
| -rw-r--r-- | dev-cpp/sdbus-c++/files/0001-fix-integration-tests-for-libsystemd-v251.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-cpp/sdbus-c++/files/0001-fix-integration-tests-for-libsystemd-v251.patch b/dev-cpp/sdbus-c++/files/0001-fix-integration-tests-for-libsystemd-v251.patch new file mode 100644 index 000000000000..93767dc94be7 --- /dev/null +++ b/dev-cpp/sdbus-c++/files/0001-fix-integration-tests-for-libsystemd-v251.patch @@ -0,0 +1,39 @@ +From c812d03bc726aafc90f996073bfc327bb0ae230d Mon Sep 17 00:00:00 2001 +From: Stanislav Angelovic <stanislav.angelovic@siemens.com> +Date: Mon, 2 Jan 2023 15:05:57 +0100 +Subject: [PATCH] fix: integration tests for libsystemd v251 + +diff --git a/tests/integrationtests/DBusStandardInterfacesTests.cpp b/tests/integrationtests/DBusStandardInterfacesTests.cpp +index a291be3..6381587 100644 +--- a/tests/integrationtests/DBusStandardInterfacesTests.cpp ++++ b/tests/integrationtests/DBusStandardInterfacesTests.cpp +@@ -201,7 +201,13 @@ TEST_F(SdbusTestObject, EmitsInterfacesAddedSignalForAllObjectInterfaces) + , const std::map<std::string, std::map<std::string, sdbus::Variant>>& interfacesAndProperties ) + { + EXPECT_THAT(objectPath, Eq(OBJECT_PATH)); ++#if LIBSYSTEMD_VERSION<=250 + EXPECT_THAT(interfacesAndProperties, SizeIs(5)); // INTERFACE_NAME + 4 standard interfaces ++#else ++ // Since systemd v251, ObjectManager standard interface is not listed among the interfaces ++ // if the object does not have object manager functionality explicitly enabled. ++ EXPECT_THAT(interfacesAndProperties, SizeIs(4)); // INTERFACE_NAME + 3 standard interfaces ++#endif + #if LIBSYSTEMD_VERSION<=244 + // Up to sd-bus v244, all properties are added to the list, i.e. `state', `action', and `blocking' in this case. + EXPECT_THAT(interfacesAndProperties.at(INTERFACE_NAME), SizeIs(3)); +@@ -248,7 +254,13 @@ TEST_F(SdbusTestObject, EmitsInterfacesRemovedSignalForAllObjectInterfaces) + , const std::vector<std::string>& interfaces ) + { + EXPECT_THAT(objectPath, Eq(OBJECT_PATH)); ++#if LIBSYSTEMD_VERSION<=250 + ASSERT_THAT(interfaces, SizeIs(5)); // INTERFACE_NAME + 4 standard interfaces ++#else ++ // Since systemd v251, ObjectManager standard interface is not listed among the interfaces ++ // if the object does not have object manager functionality explicitly enabled. ++ ASSERT_THAT(interfaces, SizeIs(4)); // INTERFACE_NAME + 3 standard interfaces ++#endif + signalReceived = true; + }; + +-- +2.39.1 |
