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:
Karel Zak 2014-10-01 10:13:09 +02:00
parent 41510d26dd
commit 937d6af4e1
1 changed files with 1 additions and 1 deletions

View File

@ -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