File: debug_testpoll_failure.patch

package info (click to toggle)
apr 1.7.6-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 7,448 kB
  • sloc: ansic: 66,059; sh: 4,279; perl: 900; awk: 393; makefile: 375; python: 146
file content (16 lines) | stat: -rw-r--r-- 791 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
@@ -924,6 +924,9 @@ static void justsleep(abts_case *tc, voi
             rv = apr_pollcb_poll(pollcb, JUSTSLEEP_DELAY, 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",
                         JUSTSLEEP_ENOUGH(t1, t2));