diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-04-30 09:31:53 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-04-30 09:31:53 +0000 |
commit | 987aaf079b1e0f705c83c2fbadd8415047dad879 (patch) | |
tree | c831ce93164a49683f04d847a5c44f2dc958380d /t/op/pat.t | |
parent | a79b25b7e1c39b559797e18bb4d3e057a9f962f0 (diff) | |
download | perl-987aaf079b1e0f705c83c2fbadd8415047dad879.tar.gz |
A skip() function is missing, to get this test pass with miniperl
p4raw-id: //depot/perl@33767
Diffstat (limited to 't/op/pat.t')
-rwxr-xr-x | t/op/pat.t | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/t/op/pat.t b/t/op/pat.t index 5ff4b9218d..1e84532872 100755 --- a/t/op/pat.t +++ b/t/op/pat.t @@ -2038,7 +2038,7 @@ print "ok 683\n" if @a == 9 && "@a" eq "f o o \n $a $b b a r"; $test = 687; -# Force scalar context on the patern match +# Force scalar context on the pattern match sub ok ($;$) { my($ok, $name) = @_; my $todo = $TODO ? " # TODO $TODO" : ''; @@ -2052,6 +2052,17 @@ sub ok ($;$) { return $ok; } +sub skip { + my $why = shift; + my $n = @_ ? shift : 1; + for (1..$n) { + print "ok $test # skip: $why\n"; + $test++; + } + local $^W = 0; + last SKIP; +} + { # Check that \x## works. 5.6.1 and 5.005_03 fail some of these. $x = "\x4e" . "E"; |