]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (ipcs/limits) skip when /proc/sys/kernel is read-only
authorKarel Zak <kzak@redhat.com>
Mon, 11 May 2026 09:36:42 +0000 (11:36 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 11 May 2026 09:36:42 +0000 (11:36 +0200)
The test writes to /proc/sys/kernel/shm* files which are
read-only in CI containers. Skip the test when the kernel
tunables are not writable.

tests/ts/ipcs/limits

index a8dd75d85cb3910c4ea26e684e0940cd43288730..cf40901b054126049b90695e8b36a2ef943c6715 100755 (executable)
@@ -30,6 +30,8 @@ ts_check_prog "bc"
 
 . "$TS_SELF"/functions.sh
 
+test -w /proc/sys/kernel/shmall || ts_skip "/proc/sys/kernel not writable"
+
 ts_lock "ipcslimits"
 
 ts_log "load original values"