From: Sami Kerola <kerolasa@iki.fi>
To: util-linux@vger.kernel.org
Cc: kerolasa@iki.fi
Subject: [PATCH] tests: make ipcs limit calculations work when numbers are large
Date: Wed, 6 Aug 2014 23:04:31 +0100 [thread overview]
Message-ID: <1407362671-18446-1-git-send-email-kerolasa@iki.fi> (raw)
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>
---
tests/ts/ipcs/limits2 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/ts/ipcs/limits2 b/tests/ts/ipcs/limits2
index 2333198..1a49c46 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
--
2.0.4
next reply other threads:[~2014-08-06 22:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-06 22:04 Sami Kerola [this message]
2014-08-11 12:58 ` [PATCH] tests: make ipcs limit calculations work when numbers are large Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1407362671-18446-1-git-send-email-kerolasa@iki.fi \
--to=kerolasa@iki.fi \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox