summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-12-30 20:28:43 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-12-30 20:30:44 -0800
commitbda1f0811edf9cb036f9dd6a26f0be556c87e377 (patch)
tree2d6ba210d0a83088d881256a5e6a57daa7be9ceb /t
parentb7e077d0225eac833ce2eb6fe9e1807f77d0f848 (diff)
downloadperl-bda1f0811edf9cb036f9dd6a26f0be556c87e377.tar.gz
Test ‘Too late for -[Mm]’
Diffstat (limited to 't')
-rw-r--r--t/run/switches.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/run/switches.t b/t/run/switches.t
index 419d580d4d..57ae32474d 100644
--- a/t/run/switches.t
+++ b/t/run/switches.t
@@ -11,7 +11,7 @@ BEGIN {
BEGIN { require "./test.pl"; }
-plan(tests => 110);
+plan(tests => 112);
use Config;
@@ -225,6 +225,10 @@ SWTESTPM
"-M- not allowed" );
} # disable TODO on VMS
}
+is runperl(stderr => 1, prog => '#!perl -m'),
+ qq 'Too late for "-m" option at -e line 1.\n', '#!perl -m';
+is runperl(stderr => 1, prog => '#!perl -M'),
+ qq 'Too late for "-M" option at -e line 1.\n', '#!perl -M';
# Tests for -V