diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2023-10-29 15:00:16 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2023-10-29 17:15:33 +0000 |
commit | be40f699449908705fcd73d37717eb95b72212db (patch) | |
tree | 0e4230c75798389859a190860d6b1b316aedcb66 /tests | |
parent | 8d1fb144d7833fd69dfdb12d323182244a88b4c1 (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-x | tests/tests/import-r1clog | 12 |
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 |