]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: fix the ipcs test for shmall being too big to show
authorKarel Zak <kzak@redhat.com>
Wed, 1 Oct 2014 08:13:09 +0000 (10:13 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 1 Oct 2014 08:13:09 +0000 (10:13 +0200)
Based on hints from Adam Sampson, Ruediger Meier and Sami Kerola.

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/ipcs/limits2

index 1a49c46245999ec4b154cebfd7c9266419c6d3b8..4e96ce68031d90586f430a10577183134b97fa29 100755 (executable)
@@ -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