projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae09e25
)
Let's not replace reason if there's one already supplied.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Sat, 27 Oct 2001 17:07:46 +0000
(17:07 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Sat, 27 Oct 2001 17:07:46 +0000
(17:07 +0000)
p4raw-id: //depot/perl@12710
t/op/regexp.t
patch
|
blob
|
history
diff --git
a/t/op/regexp.t
b/t/op/regexp.t
index
5a31696
..
3cebee9
100755
(executable)
--- a/
t/op/regexp.t
+++ b/
t/op/regexp.t
@@
-69,7
+69,7
@@
while (<TESTS>) {
$expect =~ s/\\n/\n/g;
$expect = $repl = '-' if $skip_amp and $input =~ /\$[&\`\']/;
$skip = ($skip_amp ? ($result =~ s/B//i) : ($result =~ s/B//));
- $reason =
$skip_amp ? 'skipping $&' : ''
;
+ $reason =
'skipping $&' if $reason eq '' && $skip_amp
;
$result =~ s/B//i unless $skip;
for $study ('', 'study \$subject') {
$c = $iters;