Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664912 - dev-ruby/redcarpet-3.4.0: test_utf8_only_header_anchors, test_toc_heading_id tests fail
Summary: dev-ruby/redcarpet-3.4.0: test_utf8_only_header_anchors, test_toc_heading_id ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2018-08-30 20:41 UTC by ernsteiswuerfel
Modified: 2019-08-13 23:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_664912.txt,5.31 KB, text/plain)
2018-08-30 20:41 UTC, ernsteiswuerfel
Details
build.log (redcarpet-3.4.0:20180830-173404.log,23.71 KB, text/plain)
2018-08-30 20:42 UTC, ernsteiswuerfel
Details
build.log (3.5.0, ppc) (redcarpet-3.5.0:20190813-225602.log,10.04 KB, text/plain)
2019-08-13 22:59 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2018-08-30 20:41:48 UTC
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" ]
Comment 1 ernsteiswuerfel archtester 2018-08-30 20:42:42 UTC
Created attachment 545522 [details]
build.log
Comment 2 Hans de Graaff gentoo-dev Security 2018-08-31 06:13:08 UTC
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?
Comment 3 ernsteiswuerfel archtester 2019-08-13 22:59:45 UTC
Created attachment 586772 [details]
build.log (3.5.0, ppc)
Comment 4 ernsteiswuerfel archtester 2019-08-13 23:00:13 UTC
redcarpet-3.5.0 passes all tests now on ppc.