X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVPIT-TestHelpers.git;a=blobdiff_plain;f=t%2F30-run_perl.t;h=077b58e598650ac385931e7602df61bc76b95e66;hp=216519706e134bca5ba807614a005c140dc974ad;hb=4eeb5afcf2cff2ebeeb8620b6b7f70dd54b7c3db;hpb=8bb4fde8189dc8eb9682a1954e5152e53822a476 diff --git a/t/30-run_perl.t b/t/30-run_perl.t index 2165197..077b58e 100644 --- a/t/30-run_perl.t +++ b/t/30-run_perl.t @@ -5,7 +5,7 @@ use warnings; use VPIT::TestHelpers; -use Test::More tests => 5; +use Test::More tests => 5 + 1; use Config; use File::Temp; @@ -66,3 +66,12 @@ for my $os (qw) { is $got, $exp, "run_perl preserving $os ENV vars"; } + +{ + local $@; + eval { + run_perl 'print "hello\n"'; + }; + like $@, qr/^Double quotes in evaluated code are not portable/, + 'croak on double quotes'; +}