diff options
author | Father Chrysostomos <sprout@cpan.org> | 2009-07-26 10:27:42 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-07-26 10:27:42 +0100 |
commit | 4ba71d51f72efb2af8dc9748dd62219261f2e1fd (patch) | |
tree | db33beb1f04b46d1f8f8202b570e72464a23aacd /t | |
parent | f0c5aa00eeb992584d6996af147c4c51fe7a6540 (diff) | |
download | perl-4ba71d51f72efb2af8dc9748dd62219261f2e1fd.tar.gz |
Allow -C on the #! line when it is identical to -C on the command line.
Change from dieing whenever -C is seen on the #! line, to dieing only when it
differs from that on the command line, or was not specified on the command line.
Diffstat (limited to 't')
-rw-r--r-- | t/run/switchC.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/run/switchC.t b/t/run/switchC.t index 41dba4988f..9e52ad3517 100644 --- a/t/run/switchC.t +++ b/t/run/switchC.t @@ -13,7 +13,7 @@ BEGIN { BEGIN { require "./test.pl"; } -plan(tests => 6); +plan(tests => 7); my $r; @@ -59,3 +59,7 @@ $r = runperl( switches => [ '-CA', '-w' ], args => [ chr(256) ] ); like( $r, qr/^256(?:\r?\n)?$/s, '-CA: @ARGV' ); +$r = runperl( switches => [ '-CS', '-w' ], + prog => "#!perl -CS\nprint chr(256)", + stderr => 1, ); +like( $r, qr/^$b(?:\r?\n)?$/s, '#!perl -C' ); |