diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2021-12-18 17:17:43 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2021-12-18 17:17:43 +0100 |
commit | d47cd2868d4d0d5d99c4f4cb45b5f735eba11618 (patch) | |
tree | f2c686a3190b68f20938cb1af2eb88cfa8178478 /dev-perl/HTML-TableParser | |
parent | dev-perl/Mail-AuthenticationResults: Add missing dependency (diff) | |
download | gentoo-d47cd2868d4d0d5d99c4f4cb45b5f735eba11618.tar.gz gentoo-d47cd2868d4d0d5d99c4f4cb45b5f735eba11618.tar.bz2 gentoo-d47cd2868d4d0d5d99c4f4cb45b5f735eba11618.zip |
dev-perl/HTML-TableParser: Fix tests
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=121341
Closes: https://bugs.gentoo.org/737338
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'dev-perl/HTML-TableParser')
-rw-r--r-- | dev-perl/HTML-TableParser/HTML-TableParser-0.430.0.ebuild | 2 | ||||
-rw-r--r-- | dev-perl/HTML-TableParser/files/HTML-TableParser-0.430.0-tests.patch | 15 |
2 files changed, 17 insertions, 0 deletions
diff --git a/dev-perl/HTML-TableParser/HTML-TableParser-0.430.0.ebuild b/dev-perl/HTML-TableParser/HTML-TableParser-0.430.0.ebuild index d7949253c28d..f08f6403b7f1 100644 --- a/dev-perl/HTML-TableParser/HTML-TableParser-0.430.0.ebuild +++ b/dev-perl/HTML-TableParser/HTML-TableParser-0.430.0.ebuild @@ -25,3 +25,5 @@ BDEPEND="${RDEPEND} >=virtual/perl-Test-Simple-0.320.0 ) " + +PATCHES=( "${FILESDIR}/${P}-tests.patch" ) diff --git a/dev-perl/HTML-TableParser/files/HTML-TableParser-0.430.0-tests.patch b/dev-perl/HTML-TableParser/files/HTML-TableParser-0.430.0-tests.patch new file mode 100644 index 000000000000..4e343bd9e0bf --- /dev/null +++ b/dev-perl/HTML-TableParser/files/HTML-TableParser-0.430.0-tests.patch @@ -0,0 +1,15 @@ +https://bugs.gentoo.org/737338 +https://rt.cpan.org/Public/Bug/Display.html?id=121341 + + +diff -ruN HTML-TableParser-0.43.orig/t/req_order.t HTML-TableParser-0.43/t/req_order.t +--- HTML-TableParser-0.43.orig/t/req_order.t 2018-03-22 21:31:52.000000000 +0100 ++++ HTML-TableParser-0.43/t/req_order.t 2021-12-18 17:14:37.239637221 +0100 +@@ -48,5 +48,5 @@ + my $p = HTML::TableParser->new( \@reqs ); + $p->parse_file( 'data/ned.html' ) || die; + +-ok( eq_array( $header, $columns ), "$html header" ); +-ok( eq_array( $data->{Default}, \@parse_data ), "$html data" ); ++is_deeply( $header, $columns, "$html header" ); ++is_deeply( $data->{Default}, \@parse_data, "$html data" ); |