summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2007-03-14 11:22:23 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2007-03-14 11:22:23 +0000
commitcd9868ec7872447f31efd5f175c7f3e90ac92657 (patch)
tree266206c98d19b36fb047f48e905be98c289d903f /test
parent3ce625884681ded8f7e08565dc76ea42a19e3652 (diff)
Fix manualroute bug for localhost following multihomed host.
Diffstat (limited to 'test')
-rw-r--r--test/dnszones-src/db.test.ex7
-rw-r--r--test/scripts/0000-Basic/04302
-rw-r--r--test/stdout/04304
3 files changed, 12 insertions, 1 deletions
diff --git a/test/dnszones-src/db.test.ex b/test/dnszones-src/db.test.ex
index b269d5856..d6122d4e3 100644
--- a/test/dnszones-src/db.test.ex
+++ b/test/dnszones-src/db.test.ex
@@ -1,4 +1,4 @@
-; $Cambridge: exim/test/dnszones-src/db.test.ex,v 1.5 2006/10/03 15:11:22 ph10 Exp $
+; $Cambridge: exim/test/dnszones-src/db.test.ex,v 1.6 2007/03/14 11:22:23 ph10 Exp $
; This is a testing zone file for use when testing DNS handling in Exim. This
; is a fake zone of no real use - hence no SOA record. The zone name is
@@ -312,6 +312,11 @@ mxt14 MX 4 ten-5-6.test.ex.
MX 5 ten-5.test.ex.
MX 6 ten-6.test.ex.
+; Non-local hosts with different precedence
+
+mxt15 MX 10 ten-1.test.ex.
+ MX 20 ten-2.test.ex.
+
; Large number of IP addresses at one MX value, and then some
; at another, to check that hosts_max_try tries the MX different
; values if it can.
diff --git a/test/scripts/0000-Basic/0430 b/test/scripts/0000-Basic/0430
index 2d338965d..e7a89d4a9 100644
--- a/test/scripts/0000-Basic/0430
+++ b/test/scripts/0000-Basic/0430
@@ -28,3 +28,5 @@ exim -DLIST=mxt11.test.ex/MX:ten-6.test.ex -bt x@random.manual.route
****
exim -DLIST=mxt11a.test.ex/MX:ten-6.test.ex -bt x@random.manual.route
****
+exim -DLIST=mxt15.test.ex/MX:localhost.test.ex -bt x@manual.route
+****
diff --git a/test/stdout/0430 b/test/stdout/0430
index 0d6c72294..8281df8ef 100644
--- a/test/stdout/0430
+++ b/test/stdout/0430
@@ -55,3 +55,7 @@ x@random.manual.route
router = r2, transport = t1
host ten-6.test.ex [V4NET.0.0.6]
host ten-1.test.ex [V4NET.0.0.1] MX=6
+x@manual.route
+ router = r1, transport = t1
+ host ten-1.test.ex [V4NET.0.0.1] MX=10
+ host ten-2.test.ex [V4NET.0.0.2] MX=20