diff options
Diffstat (limited to 'meta/recipes-support/libevent')
-rw-r--r-- | meta/recipes-support/libevent/libevent/0002-test-regress.h-Increase-default-timeval-tolerance-50.patch | 33 | ||||
-rw-r--r-- | meta/recipes-support/libevent/libevent_2.1.11.bb | 6 |
2 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-support/libevent/libevent/0002-test-regress.h-Increase-default-timeval-tolerance-50.patch b/meta/recipes-support/libevent/libevent/0002-test-regress.h-Increase-default-timeval-tolerance-50.patch new file mode 100644 index 0000000000..0b20eda3c0 --- /dev/null +++ b/meta/recipes-support/libevent/libevent/0002-test-regress.h-Increase-default-timeval-tolerance-50.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From dff8fd27edb23bc1486809186c6a4fe1f75f2179 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Fan Yu <yifan.yu@windriver.com> | ||
3 | Date: Thu, 22 Apr 2021 22:35:59 -0400 | ||
4 | Subject: [PATCH] test/regress.h: Increase default timeval tolerance 50 ms -> | ||
5 | 100 ms | ||
6 | |||
7 | The default timeout tolerance is 50 ms, | ||
8 | which causes intermittent failure in many the | ||
9 | related tests in arm64 QEMU. | ||
10 | |||
11 | See: https://bugzilla.yoctoproject.org/show_bug.cgi?id=14163 | ||
12 | (The root cause seems to be a heavy load) | ||
13 | |||
14 | Upstream-Status: Submitted [https://github.com/libevent/libevent/pull/1157] | ||
15 | |||
16 | Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com> | ||
17 | --- | ||
18 | test/regress.h | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/test/regress.h b/test/regress.h | ||
22 | index f06a7669..829af4a7 100644 | ||
23 | --- a/test/regress.h | ||
24 | +++ b/test/regress.h | ||
25 | @@ -127,7 +127,7 @@ int test_ai_eq_(const struct evutil_addrinfo *ai, const char *sockaddr_port, | ||
26 | tt_int_op(labs(timeval_msec_diff((tv1), (tv2)) - diff), <=, tolerance) | ||
27 | |||
28 | #define test_timeval_diff_eq(tv1, tv2, diff) \ | ||
29 | - test_timeval_diff_leq((tv1), (tv2), (diff), 50) | ||
30 | + test_timeval_diff_leq((tv1), (tv2), (diff), 100) | ||
31 | |||
32 | long timeval_msec_diff(const struct timeval *start, const struct timeval *end); | ||
33 | |||
diff --git a/meta/recipes-support/libevent/libevent_2.1.11.bb b/meta/recipes-support/libevent/libevent_2.1.11.bb index fb186eb89f..75f9979c5b 100644 --- a/meta/recipes-support/libevent/libevent_2.1.11.bb +++ b/meta/recipes-support/libevent/libevent_2.1.11.bb | |||
@@ -1,4 +1,9 @@ | |||
1 | SUMMARY = "An asynchronous event notification library" | 1 | SUMMARY = "An asynchronous event notification library" |
2 | DESCRIPTION = "A software library that provides asynchronous event \ | ||
3 | notification. The libevent API provides a mechanism to execute a callback \ | ||
4 | function when a specific event occurs on a file descriptor or after a \ | ||
5 | timeout has been reached. libevent also supports callbacks triggered \ | ||
6 | by signals and regular timeouts" | ||
2 | HOMEPAGE = "http://libevent.org/" | 7 | HOMEPAGE = "http://libevent.org/" |
3 | BUGTRACKER = "https://github.com/libevent/libevent/issues" | 8 | BUGTRACKER = "https://github.com/libevent/libevent/issues" |
4 | SECTION = "libs" | 9 | SECTION = "libs" |
@@ -10,6 +15,7 @@ SRC_URI = "https://github.com/libevent/libevent/releases/download/release-${PV}- | |||
10 | file://Makefile-missing-test-dir.patch \ | 15 | file://Makefile-missing-test-dir.patch \ |
11 | file://run-ptest \ | 16 | file://run-ptest \ |
12 | file://0001-test-regress_dns.c-patch-out-tests-that-require-a-wo.patch \ | 17 | file://0001-test-regress_dns.c-patch-out-tests-that-require-a-wo.patch \ |
18 | file://0002-test-regress.h-Increase-default-timeval-tolerance-50.patch \ | ||
13 | " | 19 | " |
14 | 20 | ||
15 | SRC_URI[md5sum] = "7f35cfe69b82d879111ec0d7b7b1c531" | 21 | SRC_URI[md5sum] = "7f35cfe69b82d879111ec0d7b7b1c531" |