From: "Ronny Gutbrod" <gentoo@tastytea.de> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-cpp/drogon/, dev-cpp/drogon/files/ Date: Fri, 9 Sep 2022 20:02:47 +0000 (UTC) [thread overview] Message-ID: <1662652596.3969a15b3da3dd8fe29a7451f013c7c92f61860b.tastytea@gentoo> (raw) commit: 3969a15b3da3dd8fe29a7451f013c7c92f61860b Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de> AuthorDate: Thu Sep 8 15:52:50 2022 +0000 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> CommitDate: Thu Sep 8 15:56:36 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3969a15b dev-cpp/drogon: fix race condition in tests Closes: https://bugs.gentoo.org/868930 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de> dev-cpp/drogon/drogon-1.8.0-r1.ebuild | 2 ++ .../drogon-1.8.0-fix-tests-race-condition.patch | 37 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/dev-cpp/drogon/drogon-1.8.0-r1.ebuild b/dev-cpp/drogon/drogon-1.8.0-r1.ebuild index 784892098..a884fc440 100644 --- a/dev-cpp/drogon/drogon-1.8.0-r1.ebuild +++ b/dev-cpp/drogon/drogon-1.8.0-r1.ebuild @@ -41,6 +41,8 @@ DEPEND="${RDEPEND} " BDEPEND="doc? ( app-doc/doxygen )" +PATCHES=( "${FILESDIR}"/${P}-fix-tests-race-condition.patch ) + DOCS=( CONTRIBUTING.md ChangeLog.md README.md README.zh-CN.md README.zh-TW.md ) src_unpack() { diff --git a/dev-cpp/drogon/files/drogon-1.8.0-fix-tests-race-condition.patch b/dev-cpp/drogon/files/drogon-1.8.0-fix-tests-race-condition.patch new file mode 100644 index 000000000..efeeb5a3d --- /dev/null +++ b/dev-cpp/drogon/files/drogon-1.8.0-fix-tests-race-condition.patch @@ -0,0 +1,37 @@ +# Upstream PR (modified): <https://github.com/drogonframework/drogon/pull/1376> +# Bug: <https://bugs.gentoo.org/868930> + +From eb0d322f40967883c8b1fb7aad7d00827c2f819c Mon Sep 17 00:00:00 2001 +From: an-tao <antao2002@gmail.com> +Date: Thu, 8 Sep 2022 11:06:30 +0800 +Subject: [PATCH] Fix a test bug when clients start before servers + +--- + lib/tests/RealIpResolverTest.cc | 1 + + lib/tests/main_CookieSameSite.cc | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/lib/tests/RealIpResolverTest.cc b/lib/tests/RealIpResolverTest.cc +index e3d4cfb66..612174d45 100644 +--- a/lib/tests/RealIpResolverTest.cc ++++ b/lib/tests/RealIpResolverTest.cc +@@ -139,6 +139,7 @@ int main(int argc, char **argv) + }); + + f1.get(); ++ std::this_thread::sleep_for(std::chrono::milliseconds(200)); + int testStatus = test::run(argc, argv); + app().getLoop()->queueInLoop([]() { app().quit(); }); + thr.join(); +diff --git a/lib/tests/main_CookieSameSite.cc b/lib/tests/main_CookieSameSite.cc +index b271e7a42..43f76198f 100644 +--- a/lib/tests/main_CookieSameSite.cc ++++ b/lib/tests/main_CookieSameSite.cc +@@ -68,6 +68,7 @@ int main(int argc, char **argv) + }); + + f1.get(); ++ std::this_thread::sleep_for(std::chrono::milliseconds(200)); + int testStatus = test::run(argc, argv); + app().getLoop()->queueInLoop([]() { app().quit(); }); + thr.join();
WARNING: multiple messages have this Message-ID (diff)
From: "Ronny Gutbrod" <gentoo@tastytea.de> To: gentoo-commits@lists.gentoo.org Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/drogon/files/, dev-cpp/drogon/ Date: Thu, 8 Sep 2022 15:56:49 +0000 (UTC) [thread overview] Message-ID: <1662652596.3969a15b3da3dd8fe29a7451f013c7c92f61860b.tastytea@gentoo> (raw) Message-ID: <20220908155649.dnyWQTMQWyHKlf2eA4EUs5P2qlYQErKeGx3VADRWJtk@z> (raw) commit: 3969a15b3da3dd8fe29a7451f013c7c92f61860b Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de> AuthorDate: Thu Sep 8 15:52:50 2022 +0000 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> CommitDate: Thu Sep 8 15:56:36 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3969a15b dev-cpp/drogon: fix race condition in tests Closes: https://bugs.gentoo.org/868930 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de> dev-cpp/drogon/drogon-1.8.0-r1.ebuild | 2 ++ .../drogon-1.8.0-fix-tests-race-condition.patch | 37 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/dev-cpp/drogon/drogon-1.8.0-r1.ebuild b/dev-cpp/drogon/drogon-1.8.0-r1.ebuild index 784892098..a884fc440 100644 --- a/dev-cpp/drogon/drogon-1.8.0-r1.ebuild +++ b/dev-cpp/drogon/drogon-1.8.0-r1.ebuild @@ -41,6 +41,8 @@ DEPEND="${RDEPEND} " BDEPEND="doc? ( app-doc/doxygen )" +PATCHES=( "${FILESDIR}"/${P}-fix-tests-race-condition.patch ) + DOCS=( CONTRIBUTING.md ChangeLog.md README.md README.zh-CN.md README.zh-TW.md ) src_unpack() { diff --git a/dev-cpp/drogon/files/drogon-1.8.0-fix-tests-race-condition.patch b/dev-cpp/drogon/files/drogon-1.8.0-fix-tests-race-condition.patch new file mode 100644 index 000000000..efeeb5a3d --- /dev/null +++ b/dev-cpp/drogon/files/drogon-1.8.0-fix-tests-race-condition.patch @@ -0,0 +1,37 @@ +# Upstream PR (modified): <https://github.com/drogonframework/drogon/pull/1376> +# Bug: <https://bugs.gentoo.org/868930> + +From eb0d322f40967883c8b1fb7aad7d00827c2f819c Mon Sep 17 00:00:00 2001 +From: an-tao <antao2002@gmail.com> +Date: Thu, 8 Sep 2022 11:06:30 +0800 +Subject: [PATCH] Fix a test bug when clients start before servers + +--- + lib/tests/RealIpResolverTest.cc | 1 + + lib/tests/main_CookieSameSite.cc | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/lib/tests/RealIpResolverTest.cc b/lib/tests/RealIpResolverTest.cc +index e3d4cfb66..612174d45 100644 +--- a/lib/tests/RealIpResolverTest.cc ++++ b/lib/tests/RealIpResolverTest.cc +@@ -139,6 +139,7 @@ int main(int argc, char **argv) + }); + + f1.get(); ++ std::this_thread::sleep_for(std::chrono::milliseconds(200)); + int testStatus = test::run(argc, argv); + app().getLoop()->queueInLoop([]() { app().quit(); }); + thr.join(); +diff --git a/lib/tests/main_CookieSameSite.cc b/lib/tests/main_CookieSameSite.cc +index b271e7a42..43f76198f 100644 +--- a/lib/tests/main_CookieSameSite.cc ++++ b/lib/tests/main_CookieSameSite.cc +@@ -68,6 +68,7 @@ int main(int argc, char **argv) + }); + + f1.get(); ++ std::this_thread::sleep_for(std::chrono::milliseconds(200)); + int testStatus = test::run(argc, argv); + app().getLoop()->queueInLoop([]() { app().quit(); }); + thr.join();
next reply other threads:[~2022-09-09 20:02 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-09-09 20:02 Ronny Gutbrod [this message] 2022-09-08 15:56 ` [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/drogon/files/, dev-cpp/drogon/ Ronny Gutbrod -- strict thread matches above, loose matches on Subject: below -- 2023-03-31 10:16 [gentoo-commits] repo/proj/guru:master commit in: dev-cpp/drogon/, dev-cpp/drogon/files/ Florian Schmaus 2022-11-16 10:19 Florian Schmaus 2021-08-17 16:46 Jian Lin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1662652596.3969a15b3da3dd8fe29a7451f013c7c92f61860b.tastytea@gentoo \ --to=gentoo@tastytea.de \ --cc=gentoo-commits@lists.gentoo.org \ --cc=gentoo-dev@lists.gentoo.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox