diff options
| author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-07-06 09:28:02 +0200 | 
|---|---|---|
| committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-07-06 09:28:02 +0200 | 
| commit | 7382d4635267518270a44a2e839de182c72c1b36 (patch) | |
| tree | b0503ee848dba9591937a7b8004a6ff6805491e4 | |
| parent | 2a8910dd3ce443f71243528b7d48ac1d4097063b (diff) | |
| download | sbotools2-7382d4635267518270a44a2e839de182c72c1b36.tar.xz | |
07-fail.t: add test for compat32 malformed-readme
| -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();  | 
