Fix crash in queue-ramp
authorJeremy Harris <jgh146exb@wizmail.org>
Sun, 5 Mar 2023 00:40:49 +0000 (00:40 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Sun, 5 Mar 2023 12:49:43 +0000 (12:49 +0000)
Broken-by: 1e835086d159
src/src/daemon.c
test/scripts/0999-EXP-Queue-Ramp/0999 [deleted file]
test/scripts/0999-EXP-Queue-Ramp/REQUIRES [deleted file]
test/scripts/0999-Queue-Ramp/0999 [new file with mode: 0644]
test/scripts/0999-Queue-Ramp/REQUIRES [new file with mode: 0644]
test/stderr/0999

index b0533c28f41701a0bcc4af6249574e5acfb91379..caed44bb376667ceec2c825a4eea96b596ca98d0 100644 (file)
@@ -1344,7 +1344,10 @@ switch (buf[0])
     memcpy(queuerun_msgid, buf+1, MESSAGE_ID_LENGTH+1);
 
     for (qrunner * q = qrunners; q; q = q->next)
-      if (Ustrcmp(q->name, buf+1+MESSAGE_ID_LENGTH+1) == 0)
+      if (q->name
+         ? Ustrcmp(q->name, buf+1+MESSAGE_ID_LENGTH+1) == 0
+         : !buf[1+MESSAGE_ID_LENGTH+1]
+        )
        { queuerun_msg_qname = q->name; break; }
     return TRUE;
 #endif
diff --git a/test/scripts/0999-EXP-Queue-Ramp/0999 b/test/scripts/0999-EXP-Queue-Ramp/0999
deleted file mode 100644 (file)
index 3fb8df9..0000000
+++ /dev/null
@@ -1,689 +0,0 @@
-# fast-ramp continued-delivery queue run
-# Exim test configuration 0999
-#
-# This feature has testability problems, because it results in
-# parallel processing of the queue by two concurrent processes
-# - the daemon, having been notified by the manual "-qq" process
-# once a sufficient list for the destination has been built, and
-# the aforementioned "-qq" process once it completes the first phase.
-# We don't really want to add yet another testsuite-only option to
-# force the latter to not be done.
-# So the best we can do is check that at least some deliveries were
-# made by the daemon.
-#
-exim -DSERVER=server -bd -q30m -odd -oX PORT_D
-****
-#
-exim -bs
-helo test
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-This is a test message.
-It has three lines.
-This is the last line.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 1
-
-This is message number 1.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 2
-
-This is message number 2.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 3
-
-This is message number 3.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 4
-
-This is message number 4.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 5
-
-This is message number 5.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 6
-
-This is message number 6.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 7
-
-This is message number 7.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 8
-
-This is message number 8.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 9
-
-This is message number 9.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 10
-
-This is message number 10.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 11
-
-This is message number 11.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 12
-
-This is message number 12.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 13
-
-This is message number 13.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 14
-
-This is message number 14.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 15
-
-This is message number 15.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 16
-
-This is message number 16.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 17
-
-This is message number 17.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 18
-
-This is message number 18.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 19
-
-This is message number 19.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 20
-
-This is message number 20.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 21
-
-This is message number 21.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 22
-
-This is message number 22.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 23
-
-This is message number 23.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 24
-
-This is message number 24.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 25
-
-This is message number 25.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 26
-
-This is message number 26.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 27
-
-This is message number 27.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 28
-
-This is message number 28.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 29
-
-This is message number 29.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 30
-
-This is message number 30.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 31
-
-This is message number 31.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 32
-
-This is message number 32.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 33
-
-This is message number 33.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 34
-
-This is message number 34.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 35
-
-This is message number 35.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 36
-
-This is message number 36.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 37
-
-This is message number 37.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 38
-
-This is message number 38.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 39
-
-This is message number 39.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 40
-
-This is message number 40.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 41
-
-This is message number 41.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 42
-
-This is message number 42.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 43
-
-This is message number 43.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 44
-
-This is message number 44.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 45
-
-This is message number 45.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 46
-
-This is message number 46.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 47
-
-This is message number 47.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 48
-
-This is message number 48.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 49
-
-This is message number 49.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 50
-
-This is message number 50.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 51
-
-This is message number 51.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 52
-
-This is message number 52.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 53
-
-This is message number 53.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 54
-
-This is message number 54.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 55
-
-This is message number 55.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 56
-
-This is message number 56.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 57
-
-This is message number 57.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 58
-
-This is message number 58.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 59
-
-This is message number 59.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 60
-
-This is message number 60.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 61
-
-This is message number 61.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 62
-
-This is message number 62.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 63
-
-This is message number 63.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 64
-
-This is message number 64.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 65
-
-This is message number 65.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 66
-
-This is message number 66.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 67
-
-This is message number 67.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 68
-
-This is message number 68.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 69
-
-This is message number 69.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 70
-
-This is message number 70.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 71
-
-This is message number 71.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 72
-
-This is message number 72.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 73
-
-This is message number 73.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 74
-
-This is message number 74.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 75
-
-This is message number 75.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 76
-
-This is message number 76.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 77
-
-This is message number 77.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 78
-
-This is message number 78.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 79
-
-This is message number 79.
-.
-RSET
-mail from:ralph@dustyshoes.tld
-rcpt to:bob@anotherone.tld
-data
-Subject: message_id 80
-
-This is message number 80.
-.
-quit
-****
-#
-#
-exim -odd -qq
-****
-#
-#
-killdaemon
-sleep 1
-#
-# Only check that we logged the right number of messages; don't care
-# about ordering or mistakes in wrong message-id
-sudo perl
-system "egrep -v '(Completed|<=|=>|is locked)' DIR/spool/log/mainlog 1>&2";
-system "awk '/OK id=/{i++} END{print i, \"messages in\"}' DIR/test-stdout 1>&2";
-system "grep 'notify' DIR/spool/log/servermainlog 1>&2";
-system "grep -q '=> bob' DIR/spool/log/servermainlog && echo 'daemon did make at least one delivery' 1>&2";
-system "awk '/<=/{i++} END{print i, \"messages received by dest\"}' DIR/spool/log/servermainlog 1>&2";
-system "ls DIR/spool/input 1>&2";
-****
-sudo rm -f DIR/spool/log/mainlog DIR/spool/log/servermainlog
-no_stdout_check
-no_msglog_check
diff --git a/test/scripts/0999-EXP-Queue-Ramp/REQUIRES b/test/scripts/0999-EXP-Queue-Ramp/REQUIRES
deleted file mode 100644 (file)
index bde27c3..0000000
+++ /dev/null
@@ -1 +0,0 @@
-support Experimental_Queue_Ramp
diff --git a/test/scripts/0999-Queue-Ramp/0999 b/test/scripts/0999-Queue-Ramp/0999
new file mode 100644 (file)
index 0000000..3fb8df9
--- /dev/null
@@ -0,0 +1,689 @@
+# fast-ramp continued-delivery queue run
+# Exim test configuration 0999
+#
+# This feature has testability problems, because it results in
+# parallel processing of the queue by two concurrent processes
+# - the daemon, having been notified by the manual "-qq" process
+# once a sufficient list for the destination has been built, and
+# the aforementioned "-qq" process once it completes the first phase.
+# We don't really want to add yet another testsuite-only option to
+# force the latter to not be done.
+# So the best we can do is check that at least some deliveries were
+# made by the daemon.
+#
+exim -DSERVER=server -bd -q30m -odd -oX PORT_D
+****
+#
+exim -bs
+helo test
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+This is a test message.
+It has three lines.
+This is the last line.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 1
+
+This is message number 1.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 2
+
+This is message number 2.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 3
+
+This is message number 3.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 4
+
+This is message number 4.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 5
+
+This is message number 5.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 6
+
+This is message number 6.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 7
+
+This is message number 7.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 8
+
+This is message number 8.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 9
+
+This is message number 9.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 10
+
+This is message number 10.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 11
+
+This is message number 11.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 12
+
+This is message number 12.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 13
+
+This is message number 13.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 14
+
+This is message number 14.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 15
+
+This is message number 15.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 16
+
+This is message number 16.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 17
+
+This is message number 17.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 18
+
+This is message number 18.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 19
+
+This is message number 19.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 20
+
+This is message number 20.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 21
+
+This is message number 21.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 22
+
+This is message number 22.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 23
+
+This is message number 23.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 24
+
+This is message number 24.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 25
+
+This is message number 25.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 26
+
+This is message number 26.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 27
+
+This is message number 27.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 28
+
+This is message number 28.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 29
+
+This is message number 29.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 30
+
+This is message number 30.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 31
+
+This is message number 31.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 32
+
+This is message number 32.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 33
+
+This is message number 33.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 34
+
+This is message number 34.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 35
+
+This is message number 35.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 36
+
+This is message number 36.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 37
+
+This is message number 37.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 38
+
+This is message number 38.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 39
+
+This is message number 39.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 40
+
+This is message number 40.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 41
+
+This is message number 41.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 42
+
+This is message number 42.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 43
+
+This is message number 43.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 44
+
+This is message number 44.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 45
+
+This is message number 45.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 46
+
+This is message number 46.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 47
+
+This is message number 47.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 48
+
+This is message number 48.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 49
+
+This is message number 49.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 50
+
+This is message number 50.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 51
+
+This is message number 51.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 52
+
+This is message number 52.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 53
+
+This is message number 53.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 54
+
+This is message number 54.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 55
+
+This is message number 55.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 56
+
+This is message number 56.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 57
+
+This is message number 57.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 58
+
+This is message number 58.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 59
+
+This is message number 59.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 60
+
+This is message number 60.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 61
+
+This is message number 61.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 62
+
+This is message number 62.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 63
+
+This is message number 63.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 64
+
+This is message number 64.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 65
+
+This is message number 65.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 66
+
+This is message number 66.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 67
+
+This is message number 67.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 68
+
+This is message number 68.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 69
+
+This is message number 69.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 70
+
+This is message number 70.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 71
+
+This is message number 71.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 72
+
+This is message number 72.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 73
+
+This is message number 73.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 74
+
+This is message number 74.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 75
+
+This is message number 75.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 76
+
+This is message number 76.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 77
+
+This is message number 77.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 78
+
+This is message number 78.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 79
+
+This is message number 79.
+.
+RSET
+mail from:ralph@dustyshoes.tld
+rcpt to:bob@anotherone.tld
+data
+Subject: message_id 80
+
+This is message number 80.
+.
+quit
+****
+#
+#
+exim -odd -qq
+****
+#
+#
+killdaemon
+sleep 1
+#
+# Only check that we logged the right number of messages; don't care
+# about ordering or mistakes in wrong message-id
+sudo perl
+system "egrep -v '(Completed|<=|=>|is locked)' DIR/spool/log/mainlog 1>&2";
+system "awk '/OK id=/{i++} END{print i, \"messages in\"}' DIR/test-stdout 1>&2";
+system "grep 'notify' DIR/spool/log/servermainlog 1>&2";
+system "grep -q '=> bob' DIR/spool/log/servermainlog && echo 'daemon did make at least one delivery' 1>&2";
+system "awk '/<=/{i++} END{print i, \"messages received by dest\"}' DIR/spool/log/servermainlog 1>&2";
+system "ls DIR/spool/input 1>&2";
+****
+sudo rm -f DIR/spool/log/mainlog DIR/spool/log/servermainlog
+no_stdout_check
+no_msglog_check
diff --git a/test/scripts/0999-Queue-Ramp/REQUIRES b/test/scripts/0999-Queue-Ramp/REQUIRES
new file mode 100644 (file)
index 0000000..9a95f9b
--- /dev/null
@@ -0,0 +1 @@
+support Queue_Ramp
index e958d86f45d22b301547486883c27ddc37133754..d7d568b47ef642db78c866244fd06b12e75b1c21 100644 (file)
@@ -79,8 +79,8 @@
 2017-07-30 18:51:05.712 10HmdX-0005vi-00 no immediate delivery: queued by ACL
 2017-07-30 18:51:05.712 10HmdY-0005vi-00 no immediate delivery: queued by ACL
 2017-07-30 18:51:05.712 10HmdZ-0005vi-00 no immediate delivery: queued by ACL
-2017-07-30 18:51:05.712 Start queue run: pid=pppp -qq
-2017-07-30 18:51:05.712 End queue run: pid=pppp -qq
+2017-07-30 18:51:05.712 Start queue run: pid=p1234 -qq
+2017-07-30 18:51:05.712 End queue run: pid=p1234 -qq
 81 messages in
 2017-07-30 18:51:05.712 notify triggered queue run
 daemon did make at least one delivery