Created attachment 545520 [details] emerge --info >>> Test phase: dev-ruby/redcarpet-3.4.0 * Running test phase for ruby23 ... /usr/bin/ruby23 -I"lib:lib:test" -I"/usr/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib" "/usr/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib/rake/rake_test_loader.rb" "test/custom_render_test.rb" "test/html5_test.rb" "test/html_render_test.rb" "test/html_toc_render_test.rb" "test/markdown_test.rb" "test/pathological_inputs_test.rb" "test/redcarpet_bin_test.rb" "test/redcarpet_compat_test.rb" "test/safe_render_test.rb" "test/smarty_html_test.rb" "test/smarty_pants_test.rb" "test/stripdown_render_test.rb" Loaded suite /usr/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib/rake/rake_test_loader Started ...................................F =============================================================================== /var/tmp/portage/dev-ruby/redcarpet-3.4.0/work/ruby23/redcarpet-3.4.0/test/html_render_test.rb:259:in `test_utf8_only_header_anchors' 256: markdown = "# 見出し" 257: html = "<h1 id=\"part-37870bfa194139f\">見出し</h1>" 258: => 259: assert_equal html, render(markdown, with: [:with_toc_data]) 260: end 261: 262: def test_escape_entities_removal_from_anchor <"<h1 id=\"part-37870bfa194139f\">見出し</h1>"> expected but was <"<h1 id=\"part-a194139f\">見出し</h1>"> diff: ? <h1 id="part-37870bfa194139f">見出し</h1> Failure: test_utf8_only_header_anchors(HTMLRenderTest) =============================================================================== .....F =============================================================================== /var/tmp/portage/dev-ruby/redcarpet-3.4.0/work/ruby23/redcarpet-3.4.0/test/html_toc_render_test.rb:43:in `test_toc_heading_id' 40: assert_match /a-nice-subtitle/, output 41: assert_match /another-one/, output 42: assert_match /a-sub-sub-title/, output => 43: assert_match /part-37870bfa194139f/, output 44: end 45: 46: def test_toc_heading_with_hyphen_and_equal Failure: test_toc_heading_id(HTMLTOCRenderTest): </part-37870bfa194139f/> was expected to be =~ <"<ul>\n<li>\n<a href=\"#a-title\">A title</a>\n<ul>\n<li>\n<a href=\"#a-nice-subtitle\">A <strong>nice</strong> subtitle</a>\n</li>\n<li>\n<a href=\"#another-one\">Another one</a>\n<ul>\n<li>\n<a href=\"#a-sub-sub-title\">A sub-sub-title</a>\n</li>\n<li>\n<a href=\"#part-a194139f\">見出し</a>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>">. =============================================================================== ............................................................................... ..... Finished in 1.872731176 seconds. ------------------------------------------------------------------------------- 126 tests, 178 assertions, 2 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 98.4127% passed ------------------------------------------------------------------------------- 67.28 tests/s, 95.05 assertions/s rake aborted! Command failed with status (1): [ruby -I"lib:lib:test" -I"/usr/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib" "/usr/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib/rake/rake_test_loader.rb" "test/custom_render_test.rb" "test/html5_test.rb" "test/html_render_test.rb" "test/html_toc_render_test.rb" "test/markdown_test.rb" "test/pathological_inputs_test.rb" "test/redcarpet_bin_test.rb" "test/redcarpet_compat_test.rb" "test/safe_render_test.rb" "test/smarty_html_test.rb" "test/smarty_pants_test.rb" "test/stripdown_render_test.rb" ]
Created attachment 545522 [details] build.log
This looks like an arch-specific issue. The C code does: bufprintf(out, "part-%lx", hash); with hash being an unsigned long. I guess that is not as long as unsigned long on amd64?
Created attachment 586772 [details] build.log (3.5.0, ppc)
redcarpet-3.5.0 passes all tests now on ppc.