X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Flei.t;h=b10c9b59c72b8e29570b63dbf5853463a2c55cb7;hb=4eee5af6011cc8cdefb66c9729952c7eff5c0b0b;hp=f7de1b711a836827b5fdbbff40473ad408eb3fce;hpb=9ee1798e270f44c94bd13ca8becbac393535005b;p=public-inbox.git diff --git a/t/lei.t b/t/lei.t index f7de1b71..b10c9b59 100644 --- a/t/lei.t +++ b/t/lei.t @@ -143,6 +143,9 @@ my $test_fail = sub { lei('-C', '/dev/null', 'q', 'whatever'); is($? >> 8, 1, 'chdir at beginning fails to /dev/null'); + lei_ok('q', "foo\n"); + like($lei_err, qr/trailing `\\n' removed/s, "noted `\\n' removal"); + for my $lk (qw(ei inbox)) { my $d = "$home/newline\n$lk"; mkdir $d;