EOF
}
-# taint tests
-
-{
- local $ENV{PERLDB_OPTS} = "ReadLine=0 NonStop=1";
- my $output = runperl(switches => [ '-d', '-T' ], stderr => 1,
- progfile => '../lib/perl5db/t/taint');
- chomp $output if $^O eq 'VMS'; # newline guaranteed at EOF
- is($output, '[$^X][done]', "taint");
-}
-
package DebugWrap;
sub new {
return;
}
+sub get_output
+{
+ return shift->_output();
+}
+
sub output_like {
my ($self, $re, $msg) = @_;
$wrapper->contents_unlike(qr/baz/, "[perl #104168] - no 'baz'");
}
+# taint tests
+{
+ my $wrapper = _calc_foo_wrapper(
+ {
+ prog => '../lib/perl5db/t/taint',
+ extra_opts => ' NonStop=1',
+ switches => [ '-d', '-T', ],
+ }
+ );
+
+ my $output = $wrapper->get_output();
+ chomp $output if $^O eq 'VMS'; # newline guaranteed at EOF
+ is($output, '[$^X][done]', "taint");
+}
+
# Testing that we can set a line in the middle of the file.
{
my $wrapper = DebugWrap->new(