]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: add tests for unshare --forward-signals
authorKiran Rangoon <kiranrangoon0@gmail.com>
Fri, 16 Jan 2026 17:06:48 +0000 (12:06 -0500)
committerKarel Zak <kzak@redhat.com>
Mon, 19 Jan 2026 10:51:29 +0000 (11:51 +0100)
commit0fbf7c4cb5d7c694ccd8867c5474044fd75f181d
tree8832dcd4697165789ab48a81379461511df9db7d
parent2d23999266645504df54fb644740fe2f55ec2d61
tests: add tests for unshare --forward-signals

Add two test cases for the new --forward-signals option:
- forward-signals: verifies SIGTERM is forwarded to child
- forward-signals-kill-child: verifies compatibility with --kill-child

Both tests use test_sigreceive which exits with the signal number
received, confirming proper signal forwarding.

Signed-off-by: Kiran Rangoon <kiranrangoon0@gmail.com>
tests/expected/unshare/forward-signals [new file with mode: 0644]
tests/expected/unshare/forward-signals-kill-child [new file with mode: 0644]
tests/ts/unshare/forward-signals [new file with mode: 0755]
tests/ts/unshare/forward-signals-kill-child [new file with mode: 0755]