summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2017-06-25 23:35:06 +0200
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2017-06-25 23:48:33 +0200
commitaf542dcfa62fc2341e8253f10c5c778b887444b9 (patch)
treed56fe67459d63cfd6efdbb503316c533719dfeb0 /test
parentf511c353099961bba2543516f854676e729ce021 (diff)
Bail out if a configuration file starts with a byte order mark
Diffstat (limited to 'test')
-rw-r--r--test/confs/09073
-rw-r--r--test/confs/09081
-rw-r--r--test/scripts/0000-Basic/09074
l---------test/scripts/0000-Basic/09081
-rw-r--r--test/stderr/09072
-rw-r--r--test/stderr/09082
6 files changed, 13 insertions, 0 deletions
diff --git a/test/confs/0907 b/test/confs/0907
new file mode 100644
index 000000000..8cb2b1b6d
--- /dev/null
+++ b/test/confs/0907
@@ -0,0 +1,3 @@
+# This file contains a BOM at the very beginning
+tls_advertise_hosts =
+keep_environment =
diff --git a/test/confs/0908 b/test/confs/0908
new file mode 100644
index 000000000..27af1d5f2
--- /dev/null
+++ b/test/confs/0908
@@ -0,0 +1 @@
+.include DIR/confs/0907
diff --git a/test/scripts/0000-Basic/0907 b/test/scripts/0000-Basic/0907
new file mode 100644
index 000000000..341a63f48
--- /dev/null
+++ b/test/scripts/0000-Basic/0907
@@ -0,0 +1,4 @@
+# check for BOM in an included config file (0908)
+#
+1
+exim -bP config
diff --git a/test/scripts/0000-Basic/0908 b/test/scripts/0000-Basic/0908
new file mode 120000
index 000000000..8cc1a8c6e
--- /dev/null
+++ b/test/scripts/0000-Basic/0908
@@ -0,0 +1 @@
+0907 \ No newline at end of file
diff --git a/test/stderr/0907 b/test/stderr/0907
new file mode 100644
index 000000000..fe9ba7150
--- /dev/null
+++ b/test/stderr/0907
@@ -0,0 +1,2 @@
+1999-03-02 09:44:33 Exim configuration error in line 1 of TESTSUITE/test-config:
+ found unexpected BOM (Byte Order Mark)
diff --git a/test/stderr/0908 b/test/stderr/0908
new file mode 100644
index 000000000..ad35a1ae6
--- /dev/null
+++ b/test/stderr/0908
@@ -0,0 +1,2 @@
+1999-03-02 09:44:33 Exim configuration error in line 1 of TESTSUITE/confs/0907:
+ found unexpected BOM (Byte Order Mark)