diff options
author | Yves Orton <demerphq@gmail.com> | 2022-11-08 14:43:01 +0100 |
---|---|---|
committer | James E Keenan <jkeenan@cpan.org> | 2022-11-08 10:04:44 -0500 |
commit | 6d4ab294f12024ec5eba77414b688b496759d974 (patch) | |
tree | 0e6eb581aa4b86b5af245322e52474b1769a64ac | |
parent | 82da20dfc9a6b5dd71822a880ffa89130b0da72e (diff) | |
download | perl-6d4ab294f12024ec5eba77414b688b496759d974.tar.gz |
ParseXS - fix todo tests to match the correct filename
The original regex was off and showed this test as passing when
it was actually failing, which is what we expect and why the test
is marked as TODO. The test accidentally doubled the extension
expected in the filename, and this patch corrects that mistake.
-rw-r--r-- | dist/ExtUtils-ParseXS/t/001-basic.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dist/ExtUtils-ParseXS/t/001-basic.t b/dist/ExtUtils-ParseXS/t/001-basic.t index 23343ae159..f8352dd036 100644 --- a/dist/ExtUtils-ParseXS/t/001-basic.t +++ b/dist/ExtUtils-ParseXS/t/001-basic.t @@ -202,9 +202,9 @@ like $stderr, '/No INPUT definition/', "Exercise typemap error"; TODO: { local $TODO = 'GH 19661'; unlike $stderr, - qr/Warning: duplicate function definition 'do' detected in $filename\.xs/, + qr/Warning: duplicate function definition 'do' detected in \Q$filename\E/, "No 'duplicate function definition' warning observed in $filename"; - } + } } { $filename = 'XSFalsePositive2.xs'; @@ -214,7 +214,7 @@ like $stderr, '/No INPUT definition/', "Exercise typemap error"; TODO: { local $TODO = 'GH 19661'; unlike $stderr, - qr/Warning: duplicate function definition 'do' detected in $filename\.xs/, + qr/Warning: duplicate function definition 'do' detected in \Q$filename\E/, "No 'duplicate function definition' warning observed in $filename"; } } |