summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2023-10-29 15:00:16 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2023-10-29 17:15:33 +0000
commitbe40f699449908705fcd73d37717eb95b72212db (patch)
tree0e4230c75798389859a190860d6b1b316aedcb66 /tests
parent8d1fb144d7833fd69dfdb12d323182244a88b4c1 (diff)
tests: import-r1clog: test malformed address in changelog
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/import-r1clog12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/tests/import-r1clog b/tests/tests/import-r1clog
index 7e1a0d2..80044aa 100755
--- a/tests/tests/import-r1clog
+++ b/tests/tests/import-r1clog
@@ -80,3 +80,15 @@ mangle-start garbage
perl-i-clog -ne '$_ = "GARBAGE\n" if (m{^\S} && $. != 1) .. 0; print;'
mangle-import
mangle-done
+
+: ---------- 'test malformed authline' ----------
+
+mangle-start bademail
+# This causes the output syntax check in clogp_authline to trip;
+# (that's the one which is intended to stop us feeding bad data to git).
+perl-i-clog -pe '
+ next unless m{^ -- .* Sat, 12 Jul 2014 20:51:56.*};
+ s{^([^<]+) }{ -- cause <things to choke> };
+'
+mangle-import
+mangle-done