Replace system by print in strictures/parsing regression test
[p5sagit/p5-mst-13.2.git] / t / TEST
diff --git a/t/TEST b/t/TEST
index 6fb6201..e293a5c 100755 (executable)
--- a/t/TEST
+++ b/t/TEST
@@ -189,7 +189,7 @@ sub _scan_test {
        }
     }
 
-    my $utf8 = $::with_utf8 ? '-I$lib -Mutf8' : '';
+    my $utf8 = $::with_utf8 ? "-I$lib -Mutf8" : '';
 
     my %options = (
        perl => $perl,
@@ -268,15 +268,11 @@ sub _after_fork {
 }
 
 sub _run_test {
-    my($harness, $test, $type) = @_;
-    if (!defined $type) {
-       # To conform to the interface expected by exec in TAP::Harness
-       $type = 'perl';
-    }
+    my ($test, $type) = @_;
 
     my $options = _scan_test($test, $type);
-
-    $test = $options->{test}; # Might have changed if we're in ext/Foo
+    # $test might have changed if we're in ext/Foo, so don't use it anymore
+    # from now on. Use $options->{test} instead.
 
     _before_fork($options);
 
@@ -486,7 +482,7 @@ EOT
            $te = '';
        }
 
-        my $results = _run_test(undef, $test, $type);
+       my $results = _run_test($test, $type);
 
        my $failure;
        my $next = 0;