diff options
author | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-07-07 14:36:04 +0000 |
---|---|---|
committer | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-07-07 14:36:04 +0000 |
commit | 41609df58fdd3fe023b91baece7d18a595f57e56 (patch) | |
tree | fa2bb8dee42514efb995f63f2b4964c0e5fcd866 /test | |
parent | 42119b09dd8a23c8fcc14ff65fdc8c4d16c83c23 (diff) |
Diagnose an error for "seen", "unseen", or "noerror" if not followed by
a command.
Diffstat (limited to 'test')
-rw-r--r-- | test/aux-fixed/0037.f-8 | 5 | ||||
-rw-r--r-- | test/aux-fixed/0037.f-9 | 3 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0037 | 8 | ||||
-rw-r--r-- | test/stdout/0037 | 14 |
4 files changed, 30 insertions, 0 deletions
diff --git a/test/aux-fixed/0037.f-8 b/test/aux-fixed/0037.f-8 new file mode 100644 index 000000000..2807c12f0 --- /dev/null +++ b/test/aux-fixed/0037.f-8 @@ -0,0 +1,5 @@ +#exim filter + +if one is one then seen endif + +if two is two then save /dev/null endif diff --git a/test/aux-fixed/0037.f-9 b/test/aux-fixed/0037.f-9 new file mode 100644 index 000000000..5d8e0ca24 --- /dev/null +++ b/test/aux-fixed/0037.f-9 @@ -0,0 +1,3 @@ +#exim filter + +unseen diff --git a/test/scripts/0000-Basic/0037 b/test/scripts/0000-Basic/0037 index 5737c724b..a1af00d6e 100644 --- a/test/scripts/0000-Basic/0037 +++ b/test/scripts/0000-Basic/0037 @@ -177,4 +177,12 @@ exim -bt prepend@test.ex # Check not prepend $home exim -DFILTER_PREPEND_HOME=no_filter_prepend_home -bt prepend@test.ex **** +# Check error for (un)seen and no command +1 +exim -bf DIR/aux-fixed/TESTNUM.f-8 </dev/null +**** +# Check error for (un)seen at eof +1 +exim -bf DIR/aux-fixed/TESTNUM.f-9 </dev/null +**** no_msglog_check diff --git a/test/stdout/0037 b/test/stdout/0037 index 47139ffda..9087a8915 100644 --- a/test/stdout/0037 +++ b/test/stdout/0037 @@ -261,3 +261,17 @@ prepend@test.ex -> /usr/relative transport = appendfile prepend@test.ex -> relative transport = appendfile +Warning: no message headers read +Return-path copied from sender +Sender = CALLER@test.ex +Recipient = CALLER@test.ex +Testing Exim filter file "TESTSUITE/aux-fixed/0037.f-8" + +Filter error: "seen", "unseen", or "noerror" near line 5 is not followed by a command +Warning: no message headers read +Return-path copied from sender +Sender = CALLER@test.ex +Recipient = CALLER@test.ex +Testing Exim filter file "TESTSUITE/aux-fixed/0037.f-9" + +Filter error: "seen" or "unseen" near line 4 is not followed by a command |