From: Karel Zak Date: Mon, 18 Jan 2021 12:22:26 +0000 (+0100) Subject: tests: set shmmni to 32k X-Git-Tag: v2.37-rc1~176 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a992cc0d98bc45581c3a9f7e216742c4b20fc875;p=thirdparty%2Futil-linux.git 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 --- diff --git a/tests/ts/ipcs/functions.sh b/tests/ts/ipcs/functions.sh index 586ce42f65..b23e123d9c 100644 --- a/tests/ts/ipcs/functions.sh +++ b/tests/ts/ipcs/functions.sh @@ -55,7 +55,7 @@ IPCS_CMD=( # ... it's a problem for admins who want to use 75557863725TB of RAM for shm) # IPCS_LIMITS=( - $($TS_HELPER_SYSINFO INT_MAX) + 32768 $($TS_HELPER_SYSINFO ULONG_MAX32) $($TS_HELPER_SYSINFO ULONG_MAX32) )