From: Philip Hazel Date: Wed, 24 Nov 2004 16:14:50 +0000 (+0000) Subject: Testing tweak to improve repeatability. X-Git-Tag: exim-4_50~89 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/4e1fde53a4b1133c5efee3ac73e598ee36b9c1ba?hp=ea3bc19b9e6b236ca38c6bf506229fd41e89d6ad Testing tweak to improve repeatability. --- diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog index d3a98b6ba..d223383ba 100644 --- a/doc/doc-txt/ChangeLog +++ b/doc/doc-txt/ChangeLog @@ -1,4 +1,4 @@ -$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.38 2004/11/24 15:43:36 ph10 Exp $ +$Cambridge: exim/doc/doc-txt/ChangeLog,v 1.39 2004/11/24 16:14:50 ph10 Exp $ Change log file for Exim from version 4.21 ------------------------------------------- @@ -169,6 +169,9 @@ Exim version 4.44 39. Added log_selector=+queue_time_overall. +40. When running the queue in the test harness, wait just a tad after forking a + delivery process, to get repeatability of debugging output. + Exim version 4.43 ----------------- diff --git a/src/src/queue.c b/src/src/queue.c index c3e81a09d..bbced642a 100644 --- a/src/src/queue.c +++ b/src/src/queue.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/queue.c,v 1.2 2004/11/05 14:59:12 ph10 Exp $ */ +/* $Cambridge: exim/src/src/queue.c,v 1.3 2004/11/24 16:14:50 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -615,6 +615,7 @@ for (i = (queue_run_in_order? -1 : 0); if ((pid = fork()) == 0) { int rc; + if (running_in_test_harness) millisleep(100); (void)close(pfd[pipe_read]); rc = deliver_message(f->text, force_delivery, FALSE); _exit(rc == DELIVER_NOT_ATTEMPTED);