Skip to content

Commit a3129c9

Browse files
committed
t/lib/croak/toke - hide conflict markers in test code
This uses the previous two patches to add a NOTE comment to the test for conflict markers explaining that we are using the obfu style markers that run_multiple_progs() supports (now), so that picky tools don't think we have conflict markers in our files.
1 parent 02d6071 commit a3129c9

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

t/lib/croak/toke

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -410,16 +410,17 @@ BEGIN <>
410410
EXPECT
411411
Illegal declaration of subroutine BEGIN at - line 1.
412412
########
413-
# NAME multiple conflict markers
414-
<<<<<<< yours:sample.txt
413+
# NAME multiple conflict markers.
414+
# NOTE the <CONFLICT< style text is auto-replaced in test.pl run_multiple_progs
415+
<CONFLICT< yours:sample.txt
415416
my $some_code;
416-
=======
417+
=CONFLICT=
417418
my $some_other_code;
418-
>>>>>>> theirs:sample.txt
419+
>CONFLICT> theirs:sample.txt
419420
EXPECT
420-
Version control conflict marker at - line 1, near "<<<<<<<"
421-
Version control conflict marker at - line 3, near "======="
422-
Version control conflict marker at - line 5, near ">>>>>>>"
421+
Version control conflict marker at - line 1, near "<CONFLICT<"
422+
Version control conflict marker at - line 3, near "=CONFLICT="
423+
Version control conflict marker at - line 5, near ">CONFLICT>"
423424
Execution of - aborted due to compilation errors.
424425
########
425426
# NAME (Might be a runaway multi-line...) with Latin-1 delimiters in utf8

0 commit comments

Comments
 (0)