summaryrefslogtreecommitdiff
path: root/t/win32
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2013-06-12 18:11:29 +0100
committerSteve Hay <steve.m.hay@googlemail.com>2013-06-12 18:18:32 +0100
commit125084908db87e2d5060f8a1a4bdc518004d54c0 (patch)
tree202247b66d55ccaca6f5818f3b1e5531abbcfce4 /t/win32
parent0511665b4b04e5ba7bba14613845524d42f7e938 (diff)
downloadperl-125084908db87e2d5060f8a1a4bdc518004d54c0.tar.gz
Corrections to 0511665b4b
- require './test.pl' in a BEGIN block, rather than use './test.pl'. - Ensure the tests are done in the same program that emits the plan() otherwise one copy of test.pl thinks tests were planned but not done and the other thinks tests were done without being planned. - Fix indentation.
Diffstat (limited to 't/win32')
-rw-r--r--t/win32/system.t8
-rw-r--r--t/win32/system_tests6
2 files changed, 8 insertions, 6 deletions
diff --git a/t/win32/system.t b/t/win32/system.t
index b81c7abc79..a6a94cb51a 100644
--- a/t/win32/system.t
+++ b/t/win32/system.t
@@ -134,8 +134,8 @@ my $expect;
my $comment = "";
while (<$T>) {
chomp;
- if (/^1\.\./) {
- print "$_\n";
+ if (s/^1\.\.//) {
+ plan $_;
}
elsif (/^#+\s(.*)$/) {
$comment = $1;
@@ -150,8 +150,8 @@ while (<$T>) {
note $comment if $comment;
note "want: $expect";
note "got : $_";
- }
- ok($expect eq $_);
+ }
+ ok($expect eq $_);
}
}
close $T;
diff --git a/t/win32/system_tests b/t/win32/system_tests
index 7d2eb1c063..e2445ed3a7 100644
--- a/t/win32/system_tests
+++ b/t/win32/system_tests
@@ -3,7 +3,9 @@
use Config;
use Cwd;
use strict;
-use './test.pl';
+BEGIN {
+ require './test.pl';
+}
$| = 1;
@@ -85,7 +87,7 @@ my @av = (
['" "', 'a" "b" "c', "abc"],
);
-plan @commands * @av * 2;
+print "1.." . (@commands * @av * 2) . "\n";
for my $cmds (@commands) {
for my $args (@av) {
my @all_args;