[Bug 16321] New: hexdump test fails on big-endian

bugzilla at busybox.net bugzilla at busybox.net
Mon Mar 10 08:31:48 UTC 2025


https://bugs.busybox.net/show_bug.cgi?id=16321

            Bug ID: 16321
           Summary: hexdump test fails on big-endian
           Product: Busybox
           Version: 1.37.x
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: azouhr at opensuse.org
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

The expected result of the hexdump test represents only little-endian.
Therefore, this test cannot succeed with big-endian machines like s390x.

This is the log that can be seen from
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:zSystems/busybox/standard/s390x

[  343s] echo -ne '' >input
[  343s] echo -ne
'\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x
15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e\x7
f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9
\xfa\xfb\xfc\xfd\xfe\xff' | hexdump -e '8/2 " %6d" "\n"'
[  343s] FAIL: hexdump -e /2 %d
[  343s] --- expected
[  343s] +++ actual
[  343s] @@ -1,5 +1,5 @@
[  343s] -    256    770   1284   1798   2312   2826   3340   3854
[  343s] -   4368   4882   5396   5910   6424   6938   7452   7966
[  343s] -  29040  29554  30068  30582  31096  31610  32124  32638
[  343s] - -32384 -31870 -31356 -30842 -30328 -29814 -29300 -28786
[  343s] -  -3600  -3086  -2572  -2058  -1544  -1030   -516     -2
[  343s] +      1    515   1029   1543   2057   2571   3085   3599
[  343s] +   4113   4627   5141   5655   6169   6683   7197   7711
[  343s] +  28785  29299  29813  30327  30841  31355  31869  32383
[  343s] + -32639 -32125 -31611 -31097 -30583 -30069 -29555 -29041
[  343s] +  -3855  -3341  -2827  -2313  -1799  -1285   -771   -257

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list