summaryrefslogtreecommitdiffstats
path: root/tests/ts/ipcs
diff options
context:
space:
mode:
authorKarel Zak2014-10-01 10:13:09 +0200
committerKarel Zak2014-10-01 10:13:09 +0200
commit937d6af4e1dfed8641475446cd9466a567fcf4e5 (patch)
treed541c9639db0ad7880d73abc3549a6c22de99d11 /tests/ts/ipcs
parentlibmount: don't return root if path contains // or ending / (diff)
downloadkernel-qcow2-util-linux-937d6af4e1dfed8641475446cd9466a567fcf4e5.tar.gz
kernel-qcow2-util-linux-937d6af4e1dfed8641475446cd9466a567fcf4e5.tar.xz
kernel-qcow2-util-linux-937d6af4e1dfed8641475446cd9466a567fcf4e5.zip
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>
Diffstat (limited to 'tests/ts/ipcs')
-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