]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: set shmmni to 32k
authorKarel Zak <kzak@redhat.com>
Mon, 18 Jan 2021 12:22:26 +0000 (13:22 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 18 Jan 2021 12:22:26 +0000 (13:22 +0100)
commita992cc0d98bc45581c3a9f7e216742c4b20fc875
tree73a7476a8e44bffe21e1687ac598f0a9b40aae51
parent7a08784ab053d6aa30db990cbec1fd35b34ed00a
tests: set shmmni to 32k

Linux kernel since 6730e6580177d13f4612767873cb5a533ad63c61 checks for
limits and kernel ipc/utils.h defines

 #define IPCMNI_SHIFT         15
 #define IPCMNI               (1 << IPCMNI_SHIFT)

it means 32768 (aka shortint max). Let's use it in our tests too to
avoid "Invalid argument" when write to /proc/sys/kernel/shmmni.

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/ipcs/functions.sh