diff options
-rwxr-xr-x | t/07-fail.t | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |