summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2014-10-01 10:13:09 +0200
committerKarel Zak <kzak@redhat.com>2014-10-24 10:24:11 +0200
commitcd23bfb4d3e5de352524f30c627791fa69200d2d (patch)
treea8571d6002fa2252f1c6b0fbb46388ef8ae3cbbb
parent72746f25adb697499ead20241404c348b6c1072f (diff)
downloadutil-linux-cd23bfb4d3e5de352524f30c627791fa69200d2d.tar.gz
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>
-rwxr-xr-xtests/ts/ipcs/limits22
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ts/ipcs/limits2 b/tests/ts/ipcs/limits2
index 1a49c4624..4e96ce680 100755
--- a/tests/ts/ipcs/limits2
+++ b/tests/ts/ipcs/limits2
@@ -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