From 145396a644de3d31ed90104fd29bcd795e9ccad1 Mon Sep 17 00:00:00 2001 From: Philip Hazel Date: Thu, 16 Feb 2006 14:54:15 +0000 Subject: Panic-die if .include specifies a non-absolute path. --- test/confs/0290 | 3 ++- test/paniclog/0290 | 2 ++ test/scripts/0000-Basic/0290 | 3 +++ test/stderr/0290 | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 test/paniclog/0290 create mode 100644 test/stderr/0290 (limited to 'test') diff --git a/test/confs/0290 b/test/confs/0290 index 312aacd9b..929a90740 100644 --- a/test/confs/0290 +++ b/test/confs/0290 @@ -4,6 +4,7 @@ FOOBAR= FOO=inc1 BAR=.include "DIR/aux-fixed/TESTNUM.inc2" RT = receive_timeout = 1s +INC= C1=# C2=# @@ -22,8 +23,8 @@ trusted_users = CALLER # ----- Main settings ----- FOOBAR .include DIR/aux-fixed/TESTNUM.FOO - RT +INC remote_sort_domains = a:b:c diff --git a/test/paniclog/0290 b/test/paniclog/0290 new file mode 100644 index 000000000..24b6854cc --- /dev/null +++ b/test/paniclog/0290 @@ -0,0 +1,2 @@ +1999-03-02 09:44:33 Exim configuration error in line 27 of TESTSUITE/test-config: + .include specifies a non-absolute path "non/absolute" diff --git a/test/scripts/0000-Basic/0290 b/test/scripts/0000-Basic/0290 index 48907f4fc..f2d69e1d0 100644 --- a/test/scripts/0000-Basic/0290 +++ b/test/scripts/0000-Basic/0290 @@ -7,3 +7,6 @@ exim -DRT -bP receive_timeout **** exim '-D RT = receive_timeout = 4s ' -bP receive_timeout **** +1 +exim -DINC='.include non/absolute' -bP receive_timeout +**** diff --git a/test/stderr/0290 b/test/stderr/0290 new file mode 100644 index 000000000..cd1712e9f --- /dev/null +++ b/test/stderr/0290 @@ -0,0 +1,3 @@ +LOG: PANIC DIE + Exim configuration error in line 27 of TESTSUITE/test-config: + .include specifies a non-absolute path "non/absolute" -- cgit v1.2.3