tests: fix the ipcs test for shmall being too big to show
Based on hints from Adam Sampson, Ruediger Meier and Sami Kerola. Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
41510d26dd
commit
937d6af4e1
|
@ -29,7 +29,7 @@ ts_check_prog "bc"
|
|||
|
||||
# TODO https://github.com/karelzak/util-linux/issues/51
|
||||
SHMALL=$(</proc/sys/kernel/shmall)
|
||||
if [ $(bc <<<"2^64 / $PAGE_SIZE < $SHMALL") -ne 1 ]; then
|
||||
if [ $(bc <<<"(2^64 / $PAGE_SIZE) <= $SHMALL") -eq 1 ]; then
|
||||
TS_KNOWN_FAIL="yes"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue