All of lore.kernel.org
 help / color / mirror / Atom feed
* Regression test failure - tests/ts/ipcs/limits2
@ 2014-08-18 22:19 Bruce Dubbs
  2014-08-19  6:09 ` Sami Kerola
  0 siblings, 1 reply; 5+ messages in thread
From: Bruce Dubbs @ 2014-08-18 22:19 UTC (permalink / raw)
  To: util-linux

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-26 15:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-18 22:19 Regression test failure - tests/ts/ipcs/limits2 Bruce Dubbs
2014-08-19  6:09 ` Sami Kerola
2014-08-19  9:18   ` Ruediger Meier
2014-08-20 11:40     ` Sami Kerola
2014-08-26 15:09       ` Ruediger Meier

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.