From 7382d4635267518270a44a2e839de182c72c1b36 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Wed, 6 Jul 2016 09:28:02 +0200 Subject: 07-fail.t: add test for compat32 malformed-readme --- t/07-fail.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/t/07-fail.t b/t/07-fail.t index d5f703f..09a17cc 100755 --- a/t/07-fail.t +++ b/t/07-fail.t @@ -11,7 +11,7 @@ use Test::Sbotools qw/ make_slackbuilds_txt set_lo set_repo sboinstall sboremove use File::Temp 'tempdir'; if ($ENV{TEST_INSTALL}) { - plan tests => 25; + plan tests => 26; } else { plan skip_all => 'Only run these tests if TEST_INSTALL=1'; } @@ -197,6 +197,9 @@ END sboinstall qw/ -p perl-nonexistentcpan /, { expected => "-p|--compat32 is not supported with Perl SBos.\n", exit => 1 }; } +# 26: compat32 for malformed-readme fail +sboinstall qw/ -p malformed-readme /, { exit => 2, expected => qr!A fatal script error has occurred:\nopen_fh, .*t/LO-fail/malformed-readme/README is not a file! }; + # Cleanup END { cleanup(); -- cgit v1.2.3