summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-01-17 21:22:38 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-01-17 21:22:38 +0000
commitf1913749ad3dc95502a87e2ec7f25f559ea81323 (patch)
treec7bcebac3683f36089edd0193c2a2e3d78078d12 /t
parentae706db49f17350f7e2ed5eccdc792223f4ea020 (diff)
downloadperl-f1913749ad3dc95502a87e2ec7f25f559ea81323.tar.gz
Regression test for change #26881
p4raw-link: @26881 on //depot/perl: ae706db49f17350f7e2ed5eccdc792223f4ea020 p4raw-id: //depot/perl@26883
Diffstat (limited to 't')
-rwxr-xr-xt/comp/require.t11
1 files changed, 10 insertions, 1 deletions
diff --git a/t/comp/require.t b/t/comp/require.t
index d0ad1f87ea..ae3da43291 100755
--- a/t/comp/require.t
+++ b/t/comp/require.t
@@ -11,7 +11,7 @@ $i = 1;
my $Is_EBCDIC = (ord('A') == 193) ? 1 : 0;
my $Is_UTF8 = (${^OPEN} || "") =~ /:utf8/;
-my $total_tests = 45;
+my $total_tests = 46;
if ($Is_EBCDIC || $Is_UTF8) { $total_tests -= 3; }
print "1..$total_tests\n";
@@ -209,6 +209,15 @@ sub bytes_to_utf16 {
$i++; do_require(bytes_to_utf16('n', qq(print "ok $i\\n"; 1;\n), 1)); # BE
$i++; do_require(bytes_to_utf16('v', qq(print "ok $i\\n"; 1;\n), 1)); # LE
+write_file('bleah.pm', qq(die "This is an expected error";\n));
+delete $INC{"bleah.pm"}; ++$::i;
+eval { CORE::require bleah; };
+if ($@ =~ /^This is an expected error/) {
+ print "ok $i\n";
+} else {
+ print "not ok $i\n";
+}
+
END {
1 while unlink 'bleah.pm';
1 while unlink 'bleah.do';