[DRE-maint] Bug#661690: ruby-nokogiri: tests rely on node ordering causing random build failures

Neil Wilson neil at aldur.co.uk
Wed Feb 29 11:03:17 UTC 2012


Package: ruby-nokogiri
Version: 1.5.0-1
Severity: normal


The nokogiri tests 'test_document_parse_method' and 'test_subclass_parse'
in test/xml/test_document.rb try to compare the string output of the
parse with the parent string output. Unfortunately this relies on node
ordering being identical for it to work.

Hash type structures have no guaranteed ordering and this causes random
build failures e.g:
https://launchpadlibrarian.net/94763657/buildlog_ubuntu-oneiric-i386.ruby-nokogiri_1.5.0-1~oneiric1~ppa1_FAILEDTOBUILD.txt.gz

Issue reported upstream at https://github.com/tenderlove/nokogiri/issues/626




-- System Information:
Debian Release: wheezy/sid
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-14-virtual (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash





More information about the Pkg-ruby-extras-maintainers mailing list