Subject: | t/10_reference.t may fail with num vs. string diff (1.0.3) |
On some of my smoker systems t/10_reference.t fails:
...
# Failed test 'data/dahu-node.ref.data and data/dahu-node.data contents are the same'
# at t/10_reference.t line 48.
# --- data/dahu-node.ref.data Sat Apr 4 10:52:31 2020
# +++ data/dahu-node.data Sat Apr 4 11:05:57 2020
# @@ -7,7 +7,7 @@
# 'dm' => {},
# 'fs' => {
# '/dev/sda1' => {
# - 'free' => 3999264768,
# + 'free' => '3999264768',
# 'fstype' => 'swap',
# 'mountpoint' => 'SWAP',
# 'size' => '3999264768',
# Failed test 'data/yeti-node.ref.data and data/yeti-node.data contents are the same'
# at t/10_reference.t line 48.
# --- data/yeti-node.ref.data Sat Apr 4 10:52:31 2020
# +++ data/yeti-node.data Sat Apr 4 11:06:05 2020
# @@ -3,7 +3,7 @@
# 'dm' => {},
# 'fs' => {
# '/dev/sda1' => {
# - 'free' => 3999264768,
# + 'free' => '3999264768',
# 'fstype' => 'swap',
# 'mountpoint' => 'SWAP',
# 'size' => '3999264768',
# Seeded srand with seed '20200404' from local date.
# Looks like you failed 2 tests of 58.
t/10_reference.t .......
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/58 subtests
...
Just a guess: maybe this happens if an older Data::Dumper is installed (I remember that old Data::Dumper used the pure perl dumper in some situations, and the pure perl dumper probably cannot determine if a scalar is internally stored as an integer).