commit 7382d4635267518270a44a2e839de182c72c1b36
parent 2a8910dd3ce443f71243528b7d48ac1d4097063b
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Wed, 6 Jul 2016 09:28:02 +0200
07-fail.t: add test for compat32 malformed-readme
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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();