summaryrefslogtreecommitdiff
path: root/t/x2p
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-09-08 08:41:38 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-09-08 11:27:21 +0200
commit7b903762ad0ebd5d0459692ad5c081c69a3c0808 (patch)
tree6e64cf76feca7527bf3a0b2ab962572023e5887e /t/x2p
parenta34ce875bf70f00f7af4a549f8c1ff0f4469f7fb (diff)
downloadperl-7b903762ad0ebd5d0459692ad5c081c69a3c0808.tar.gz
Remove code specific to MacOS Classic from core tests
Diffstat (limited to 't/x2p')
-rw-r--r--t/x2p/s2p.t9
1 files changed, 3 insertions, 6 deletions
diff --git a/t/x2p/s2p.t b/t/x2p/s2p.t
index 20000bfb55..bad16330ff 100644
--- a/t/x2p/s2p.t
+++ b/t/x2p/s2p.t
@@ -806,9 +806,6 @@ my $sedcmd = [ $psed, '-f', $script, $stdin ];
my $s2pcmd = [ $s2p, '-f', $script ];
my $plcmd = [ $plsed, $stdin ];
-my $switches = '';
-$switches = ['-x'] if $^O eq 'MacOS';
-
# psed: we create a local copy as linking may not work on some systems.
copy( $s2p, $psed );
push( @aux, $psed );
@@ -852,19 +849,19 @@ for my $tc ( sort keys %testcase ){
# run and compare
#
- $psedres = runperl( args => $sedcmd, switches => $switches );
+ $psedres = runperl( args => $sedcmd );
is( $psedres, $testcase{$tc}{expect}, "psed $tc" );
# 2nd test: run s2p
# translate the sed script to a Perl program
- my $perlprog = runperl( args => $s2pcmd, switches => $switches );
+ my $perlprog = runperl( args => $s2pcmd );
open( PP, ">$plsed" ) || goto FAIL_S2P;
print PP $perlprog;
close( PP ) || goto FAIL_S2P;
# execute generated Perl program, compare
- $s2pres = runperl( args => $plcmd, switches => $switches );
+ $s2pres = runperl( args => $plcmd );
is( $s2pres, $testcase{$tc}{expect}, "s2p $tc" );
next;