plan(tests => 14);
+# due to a bug in VMS's piping which makes it impossible for runperl()
+# to emulate echo -n, these tests almost totally fail.
+$TODO = "runperl() unable to emulate echo -n due to pipe bug" if $^O eq 'VMS';
+
my $r;
my @tmpfiles = ();
END { unlink @tmpfiles }
my $filename = 'swctest.tmp';
SKIP: {
+ local $TODO = ''; # this one works on VMS
+
open my $f, ">$filename" or skip( "Can't write temp file $filename: $!" );
print $f <<'SWTEST';
BEGIN { print "block 1\n"; }
progfile => $filename,
args => [ '-x=foo' ],
);
- is( $r, 'foo', '-s on the #! line' );
+ is( $r, 'foo', '-s on the shebang line' );
push @tmpfiles, $filename;
}
switches => [ '-mswtest' ],
prog => '1',
);
- is( $r, '', '-m' );
+
+ {
+ local $TODO = ''; # this one works on VMS
+ is( $r, '', '-m' );
+ }
$r = runperl(
switches => [ '-mswtest=foo,bar' ],
prog => '1',
# VMS will avenge.
my $out;
if ($name) {
+ # escape out '#' or it will interfere with '# skip' and such
+ $name =~ s/#/\\#/g;
$out = $pass ? "ok $test - $name" : "not ok $test - $name";
} else {
$out = $pass ? "ok $test" : "not ok $test";