summaryrefslogtreecommitdiffstats
path: root/tests/ts/ipcs
diff options
context:
space:
mode:
authorSami Kerola2014-08-07 00:04:31 +0200
committerKarel Zak2014-08-11 14:52:01 +0200
commit3a9ec12d6664527fad9c56347c88f3447d6c0856 (patch)
treeac0926b49a14357a2041733e579fb10c46459e27 /tests/ts/ipcs
parentswapon: remove invalid error string print outs (diff)
downloadkernel-qcow2-util-linux-3a9ec12d6664527fad9c56347c88f3447d6c0856.tar.gz
kernel-qcow2-util-linux-3a9ec12d6664527fad9c56347c88f3447d6c0856.tar.xz
kernel-qcow2-util-linux-3a9ec12d6664527fad9c56347c88f3447d6c0856.zip
tests: make ipcs limit calculations work when numbers are large
Test suite failed when I ran it with kernel 3.16. Error is the following. tests/ts/ipcs/limits2: line 31: [: 18446744073692774399: integer expression expected Reference: http://lkml.iu.edu/hypermail/linux/kernel/1406.0/01869.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tests/ts/ipcs')
-rwxr-xr-xtests/ts/ipcs/limits23
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ts/ipcs/limits2 b/tests/ts/ipcs/limits2
index 23331985e..1a49c4624 100755
--- a/tests/ts/ipcs/limits2
+++ b/tests/ts/ipcs/limits2
@@ -28,7 +28,8 @@ ts_check_prog "bc"
. $TS_SELF/functions.sh
# TODO https://github.com/karelzak/util-linux/issues/51
-if [ $(</proc/sys/kernel/shmall) -ge $(bc <<<"2^64 / $PAGE_SIZE") ]; then
+SHMALL=$(</proc/sys/kernel/shmall)
+if [ $(bc <<<"2^64 / $PAGE_SIZE < $SHMALL") -ne 1 ]; then
TS_KNOWN_FAIL="yes"
fi