]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - t/17-ctl.t
Don't use the main:: stash in the last test of t/17-ctl.t
[perl/modules/Variable-Magic.git] / t / 17-ctl.t
index 4235938027d07dc904d2897fa3291e4c32b9af32..2adf60de8a858301b17a5fe621cb35163e1d906b 100644 (file)
@@ -266,10 +266,10 @@ SKIP:
  skip 'No working Capture::Tiny is installed'=> $count unless $has_capture_tiny;
 
  my $output = Capture::Tiny::capture_merged(sub { run_perl <<' CODE' });
-use Variable::Magic qw<wizard cast>; BEGIN { cast %::, wizard fetch => sub { die q[raddish] } } hlagh()
+use Variable::Magic qw<wizard cast>; BEGIN { cast %derp::, wizard fetch => sub { die q[raddish] } } derp::hlagh()
  CODE
  skip 'Test code didn\'t run properly' => $count unless defined $output;
- like $output, qr/^(?:raddish at -e line \d+\.\n)+Execution(?s:.*)/,
+ like $output, expect('raddish', '-e', "\nExecution(?s:.*)"),
                'die in free callback at compile time and not in eval string';
  --$count;
 }