mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +00:00
Make test deterministic: assert failed on big-endian arch
This commit is contained in:
parent
e373419855
commit
b757aa1750
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ do
|
|||
assert(_ENV.pack("xc3", 2, 3, 4) == "\x00\x02\x03\x04")
|
||||
assert(_ENV.pack("c2x2", 2, 3, 4) == "\x02\x03\x00\x00")
|
||||
|
||||
assert(_ENV.pack("C2SIL", 0x123, 0xfff1, 0x1ffff, 0x112345678, 0x1234567812345678) == "\x23\xf1\xff\xff\x78\x56\x34\x12\x78\x56\x34\x12\x78\x56\x34\x12")
|
||||
assert(_ENV.pack("<C2SIL", 0x123, 0xfff1, 0x1ffff, 0x112345678, 0x1234567812345678) == "\x23\xf1\xff\xff\x78\x56\x34\x12\x78\x56\x34\x12\x78\x56\x34\x12")
|
||||
end
|
||||
|
||||
local function unpacker (fixer, status, ...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue