Skip to content

Commit

Permalink
tests: make ipcs limit calculations work when numbers are large
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kerolasa authored and karelzak committed Aug 11, 2014
1 parent 3077ff4 commit 3a9ec12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/ts/ipcs/limits2
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3a9ec12

Please sign in to comment.