]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: improve u64 use in ipcs test
authorKarel Zak <kzak@redhat.com>
Tue, 19 Jan 2021 15:25:33 +0000 (16:25 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 19 Jan 2021 15:25:33 +0000 (16:25 +0100)
commit734678205af89c2022fd1ad86fddd7c07d188f20
treea7084fbd7235943279833aa36a6f9ade240f2f0d
parent8399fe089b61a17926033d1659b21f7096c2c73f
tests: improve u64 use in ipcs test

UINT64_MAX is 18446744073709551615, but 2^64 is 18446744073709551616.
We also need to use kbytes in all calculation in the test than bytes
as ipcs by default do not use bytes anymore.

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/helpers/test_sysinfo.c
tests/ts/ipcs/functions.sh