[DRE-maint] Bug#1095009: ruby-unparser: one test failing on 32bit architectures
Cédric Boutillier
boutil at debian.org
Sun Feb 2 14:48:23 GMT 2025
Source: ruby-unparser
Version: 0.6.13-1
Severity: important
Tags: upstream
The test on literal corpus fails on armel, armhf, i386. This prevents
for now migration to testing.
Failures:
1) Unparser corpus passes the literal corpus
Failure/Error: expect(Unparser::CLI.run(%w[test/corpus/literal --literal] + version_excludes)).to be(0)
expected #<Integer:1> => 0
got #<Integer:3> => 1
Compared using equal?, which compares object identity,
but expected and actual are not the same object. Use
`expect(actual).to eq(expected)` if you don't care about
object identity in this example.
# ./spec/unit/unparser_spec.rb:432:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:10:in `block in <top (required)>'
See for example
https://ci.debian.net/packages/r/ruby-unparser/testing/armel/55945480/
or
https://ci.debian.net/packages/r/ruby-unparser/testing/i386/55964357/
This is the actual diff between the expected and generated output. The difference is that in one hand, 1 is returned as an int, and in the other hand as a float.
--- unparser-old.txt 2025-01-31 18:25:56.381930232 +0100
+++ unparser-new.txt 2025-01-31 18:28:43.262964364 +0100
@@ -1,4 +1,4 @@
- Original-Source:
+ Generated-Source:
{ "foo" => <<-HEREDOC, "bar" => :baz }
#{}
HEREDOC
@@ -17,7 +17,7 @@
++1
1
1
- 1r
+ 1.0r
1.5r
1.3r
5i
@@ -25,7 +25,7 @@
0.6i
-0.6i
1000000000000000000000000000000i
- 1ri
+ 1.0ri
"foo" "bar"
"foobar #{baz}"
"foo#{1}bar"
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.11-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
More information about the Pkg-ruby-extras-maintainers
mailing list