summaryrefslogtreecommitdiffstats
path: root/debian/patches/debug_testpoll_failure.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 06:23:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 06:23:09 +0000
commit2b1bf113c14ff001ed6ba4fc8b09c72a1bcfd6b0 (patch)
tree4358ff30f29d4cacb2992ec6b4fce360dace2853 /debian/patches/debug_testpoll_failure.patch
parentAdding upstream version 1.7.2. (diff)
downloadapr-2b1bf113c14ff001ed6ba4fc8b09c72a1bcfd6b0.tar.xz
apr-2b1bf113c14ff001ed6ba4fc8b09c72a1bcfd6b0.zip
Adding debian version 1.7.2-3.debian/1.7.2-3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/debug_testpoll_failure.patch')
-rw-r--r--debian/patches/debug_testpoll_failure.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/debug_testpoll_failure.patch b/debian/patches/debug_testpoll_failure.patch
new file mode 100644
index 0000000..721e030
--- /dev/null
+++ b/debian/patches/debug_testpoll_failure.patch
@@ -0,0 +1,16 @@
+# reproducible.debian.net gave strange test error on build:
+# testpoll : Line 876: apr_pollcb_poll() didn't sleep
+# FAILED 1 of 23
+# add some debug output
+--- apr.orig/test/testpoll.c
++++ apr/test/testpoll.c
+@@ -908,6 +908,9 @@ static void justsleep(abts_case *tc, voi
+ rv = apr_pollcb_poll(pollcb, apr_time_from_msec(200), NULL, NULL);
+ t2 = apr_time_now();
+ ABTS_INT_EQUAL(tc, 1, APR_STATUS_IS_TIMEUP(rv));
++ if ((t2 - t1) <= apr_time_from_msec(100))
++ abts_log_message("pollset method: %d t1: %ld t2: %ld rv: %d\n",
++ i, (long)t1, (long)t2, rv);
+ ABTS_ASSERT(tc,
+ "apr_pollcb_poll() didn't sleep",
+ (t2 - t1) > apr_time_from_msec(100));