diff options
| -rw-r--r-- | meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.1.0/7f437a6e06d2ec3abd3e2fd1101ab6aab386bc44.patch | 54 | ||||
| -rwxr-xr-x | meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.2.0/run-ptest (renamed from meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.1.0/run-ptest) | 0 | ||||
| -rw-r--r-- | meta-oe/recipes-core/sdbus-c++/sdbus-c++_1.2.0.bb (renamed from meta-oe/recipes-core/sdbus-c++/sdbus-c++_1.1.0.bb) | 5 |
3 files changed, 2 insertions, 57 deletions
diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.1.0/7f437a6e06d2ec3abd3e2fd1101ab6aab386bc44.patch b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.1.0/7f437a6e06d2ec3abd3e2fd1101ab6aab386bc44.patch deleted file mode 100644 index 641935f684..0000000000 --- a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.1.0/7f437a6e06d2ec3abd3e2fd1101ab6aab386bc44.patch +++ /dev/null | |||
| @@ -1,54 +0,0 @@ | |||
| 1 | commit 7f437a6e06d2ec3abd3e2fd1101ab6aab386bc44 | ||
| 2 | Author: Stanislav Angelovic <stanislav.angelovic@siemens.com> | ||
| 3 | Date: Thu Jan 27 13:38:19 2022 +0100 | ||
| 4 | |||
| 5 | fix(tests): printer for std::chrono in googletest v1.11.0 | ||
| 6 | |||
| 7 | diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt | ||
| 8 | index fbf198c..ec42e55 100644 | ||
| 9 | --- a/tests/CMakeLists.txt | ||
| 10 | +++ b/tests/CMakeLists.txt | ||
| 11 | @@ -19,7 +19,7 @@ if (NOT TARGET GTest::gmock) | ||
| 12 | if (NOT TARGET GTest::gmock) | ||
| 13 | include(FetchContent) | ||
| 14 | |||
| 15 | - message("Fetching googletest...") | ||
| 16 | + message("Fetching googletest v${GOOGLETEST_VERSION}...") | ||
| 17 | FetchContent_Declare(googletest | ||
| 18 | GIT_REPOSITORY ${GOOGLETEST_GIT_REPO} | ||
| 19 | GIT_TAG release-${GOOGLETEST_VERSION} | ||
| 20 | diff --git a/tests/integrationtests/Defs.h b/tests/integrationtests/Defs.h | ||
| 21 | index 2f129a4..2bfc7c9 100644 | ||
| 22 | --- a/tests/integrationtests/Defs.h | ||
| 23 | +++ b/tests/integrationtests/Defs.h | ||
| 24 | @@ -56,20 +56,18 @@ const bool DEFAULT_BLOCKING_VALUE{true}; | ||
| 25 | |||
| 26 | constexpr const double DOUBLE_VALUE{3.24L}; | ||
| 27 | |||
| 28 | -/** Duration stream operator for human readable gtest value output. | ||
| 29 | - * | ||
| 30 | - * Note that the conversion to double is lossy if the input type has 64 or more bits. | ||
| 31 | - * This is ok for our integration tests because they don't have very | ||
| 32 | - * accurate timing requirements. | ||
| 33 | - * | ||
| 34 | - * @return human readable duration in seconds | ||
| 35 | - */ | ||
| 36 | +}} | ||
| 37 | + | ||
| 38 | +namespace testing::internal { | ||
| 39 | + | ||
| 40 | +// Printer for std::chrono::duration types. | ||
| 41 | +// This is a workaround, since it's not a good thing to add this to std namespace. | ||
| 42 | template< class Rep, class Period > | ||
| 43 | -static std::ostream& operator<<(std::ostream& os, const std::chrono::duration<Rep, Period>& d) | ||
| 44 | -{ | ||
| 45 | +void PrintTo(const ::std::chrono::duration<Rep, Period>& d, ::std::ostream* os) { | ||
| 46 | auto seconds = std::chrono::duration_cast<std::chrono::duration<double>>(d); | ||
| 47 | - return os << seconds.count() << " s"; | ||
| 48 | + *os << seconds.count() << "s"; | ||
| 49 | +} | ||
| 50 | + | ||
| 51 | } | ||
| 52 | -}} | ||
| 53 | |||
| 54 | #endif /* SDBUS_CPP_INTEGRATIONTESTS_DEFS_H_ */ | ||
diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.1.0/run-ptest b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.2.0/run-ptest index f6ade0c7e4..f6ade0c7e4 100755 --- a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.1.0/run-ptest +++ b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.2.0/run-ptest | |||
diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++_1.1.0.bb b/meta-oe/recipes-core/sdbus-c++/sdbus-c++_1.2.0.bb index 107dbc6c9d..75cd815535 100644 --- a/meta-oe/recipes-core/sdbus-c++/sdbus-c++_1.1.0.bb +++ b/meta-oe/recipes-core/sdbus-c++/sdbus-c++_1.2.0.bb | |||
| @@ -16,11 +16,10 @@ PACKAGECONFIG[with-tests] = "-DBUILD_TESTS=ON -DTESTS_INSTALL_PATH=${libdir}/${B | |||
| 16 | 16 | ||
| 17 | DEPENDS += "expat" | 17 | DEPENDS += "expat" |
| 18 | 18 | ||
| 19 | SRCREV = "bca8e81037766a0454740c40307eea32831c101f" | 19 | SRCREV = "751c1addc4fd2f949a466f488c1b7de2ca3b76dc" |
| 20 | 20 | ||
| 21 | SRC_URI = "git://github.com/Kistler-Group/sdbus-cpp.git;protocol=https;branch=master" | 21 | SRC_URI = "git://github.com/Kistler-Group/sdbus-cpp.git;protocol=https;branch=master" |
| 22 | SRC_URI += "file://run-ptest \ | 22 | SRC_URI += "file://run-ptest" |
| 23 | file://7f437a6e06d2ec3abd3e2fd1101ab6aab386bc44.patch " | ||
| 24 | 23 | ||
| 25 | EXTRA_OECMAKE = "-DBUILD_CODE_GEN=OFF \ | 24 | EXTRA_OECMAKE = "-DBUILD_CODE_GEN=OFF \ |
| 26 | -DBUILD_DOC=ON \ | 25 | -DBUILD_DOC=ON \ |
