All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Dubbs <bruce.dubbs@gmail.com>
To: util-linux@vger.kernel.org
Subject: Regression test failure - tests/ts/ipcs/limits2
Date: Mon, 18 Aug 2014 17:19:49 -0500	[thread overview]
Message-ID: <53F27C05.3090902@gmail.com> (raw)

When testing util-linux-2.25, I was suprised to get a test failure. 
Running it down, I found tests/ts/ipcs/limits2 is doing:

if [ $(</proc/sys/kernel/shmall) -ge $(bc <<<"2^64 / $PAGE_SIZE") ];

The problem is that starting with the 3.16 kernel the shmall value is 
18446744073692774399 which is the max value of an unsigned long on a 
64-bit system (UINT64_MAX).  Bash doesn't like this value and says:

"18446744073692774399: integer expression expected"

I can work around this by setting shmall before running the test, but 
there is a problem with either the test or in the kernel.

I note that the kernel's shmmax value is also set to UINT64_MAX.

What's the best way to approach this?

   -- Bruce Dubbs
      linuxfromscratch.org

             reply	other threads:[~2014-08-18 22:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-18 22:19 Bruce Dubbs [this message]
2014-08-19  6:09 ` Regression test failure - tests/ts/ipcs/limits2 Sami Kerola
2014-08-19  9:18   ` Ruediger Meier
2014-08-20 11:40     ` Sami Kerola
2014-08-26 15:09       ` Ruediger Meier

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=53F27C05.3090902@gmail.com \
    --to=bruce.dubbs@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.