X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Flei-p2q.t;fp=t%2Flei-p2q.t;h=be2d437c709d6e67f962eed7fb8c14dbc11eee12;hb=319fa38ae121b86b375f3f67ec6f5f45e4608b12;hp=87cf9fa7d6d9fcad15097037f5cf8610e72a8f3f;hpb=3f88776b8caeb7f58a99f065ba6650aed03c11ca;p=public-inbox.git diff --git a/t/lei-p2q.t b/t/lei-p2q.t index 87cf9fa7..be2d437c 100644 --- a/t/lei-p2q.t +++ b/t/lei-p2q.t @@ -6,9 +6,11 @@ require_git 2.6; require_mods(qw(json DBD::SQLite Search::Xapian)); test_lei(sub { + ok(!lei(qw(p2q this-better-cause-format-patch-to-fail)), + 'p2q fails on bogus arg'); lei_ok(qw(p2q -w dfpost t/data/0001.patch)); is($lei_out, "dfpost:6e006fd73b1d\n", 'pathname'); - open my $fh, '+<', 't/data/0001.patch'; + open my $fh, '+<', 't/data/0001.patch' or xbail "open: $!"; lei_ok([qw(p2q -w dfpost -)], undef, { %$lei_opt, 0 => $fh }); is($lei_out, "dfpost:6e006fd73b1d\n", '--stdin');