only fails on ruby30. passed all tests on ruby26 and ruby27 =============================================================================== Failure: test_abs_xpath(TestParser) /var/tmp/portage/dev-ruby/hpricot-0.8.6-r6/work/ruby30/hpricot-0.8.6/test/test_parser.rb:165:in `test_abs_xpath' 162: assert_equal 60, @boingboing.search("/*/body//p[@class='posted']").length 163: assert_equal 18, @boingboing.search("//script").length 164: divs = @boingboing.search("//script/../div") => 165: assert_equal 2, divs.length 166: imgs = @boingboing.search('//div/p/a/img') 167: assert_equal 16, imgs.length 168: assert_equal 16, @boingboing.search('//div').search('p/a/img').length <2> expected but was <1> =============================================================================== ........................F =============================================================================== Failure: test_many_paths(TestParser) /var/tmp/portage/dev-ruby/hpricot-0.8.6-r6/work/ruby30/hpricot-0.8.6/test/test_parser.rb:222:in `test_many_paths' 219: def test_many_paths 220: @boingboing = Hpricot.parse(TestFiles::BOINGBOING) 221: assert_equal 62, @boingboing.search('p.posted, link[@rel="alternate"]').length => 222: assert_equal 18, @boingboing.search('//div/p[a/img]|//link[@rel="alternate"]').length 223: end 224: 225: def test_stacked_search <18> expected but was <26> =============================================================================== ......../var/tmp/portage/dev-ruby/hpricot-0.8.6-r6/work/ruby30/hpricot-0.8.6/lib/hpricot/elements.rb:68: warning: constant ::Fixnum is deprecated ....F =============================================================================== Failure: test_predicates(TestParser) /var/tmp/portage/dev-ruby/hpricot-0.8.6-r6/work/ruby30/hpricot-0.8.6/test/test_parser.rb:179:in `test_predicates' 176: assert_equal 16, p_imgs.length 177: assert p_imgs.all? { |x| x.name == 'p' } 178: p_imgs = @boingboing.search('//div/p[a/img]') => 179: assert_equal 16, p_imgs.length 180: assert p_imgs.all? { |x| x.name == 'p' } 181: assert_equal 1, @boingboing.search('//input[@checked]').length 182: end <16> expected but was <24> =============================================================================== Reproducible: Always
Created attachment 757123 [details] build log
Created attachment 757124 [details] emerge --info
I can reproduce this, but this must have gotten broken between adding ruby30 and now.
(In reply to Hans de Graaff from comment #3) > I can reproduce this, but this must have gotten broken between adding ruby30 > and now. Ah, these failures are intermittent and don't always happen. Given a fixed test order that seems fairly fishy.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1238100dfe7a4971438ea00550e9df0a33707cf3 commit 1238100dfe7a4971438ea00550e9df0a33707cf3 Author: David Seifert <soap@gentoo.org> AuthorDate: 2023-04-30 10:06:09 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2023-04-30 10:06:09 +0000 dev-ruby/hpricot: treeclean Closes: https://bugs.gentoo.org/442308 Closes: https://bugs.gentoo.org/584906 Closes: https://bugs.gentoo.org/619386 Closes: https://bugs.gentoo.org/827934 Closes: https://bugs.gentoo.org/884257 Signed-off-by: David Seifert <soap@gentoo.org> dev-ruby/hpricot/Manifest | 1 - dev-ruby/hpricot/files/hpricot-0.8.6-fast_xs.patch | 24 --------- dev-ruby/hpricot/hpricot-0.8.6-r6.ebuild | 57 ---------------------- dev-ruby/hpricot/metadata.xml | 8 --- profiles/package.mask | 1 - 5 files changed, 91 deletions(-)