]> Sergey Matveev's repositories - public-inbox.git/commit
t/spawn: Find invalid PID to try to join its process group
authorThiago Jung Bauermann <bauermann@kolabnow.com>
Fri, 10 Jun 2022 15:39:18 +0000 (12:39 -0300)
committerEric Wong <e@80x24.org>
Sat, 11 Jun 2022 00:21:46 +0000 (00:21 +0000)
commit5593489d9c3ce22b1942f35c7ebb0e06fcf2bfa8
tree33555e33f679fac416a7b8e5340898eab9b3cb26
parent60848de2194f0c518bd660860e9458dd765d0a3e
t/spawn: Find invalid PID to try to join its process group

In the container used to build packages of the GNU Guix distribution, PID 1
runs as the same user as the test so this spawn that should fail actually
succeeds.

Fix the problem by going through different PIDs and picking one that
either doesn't exist or we aren't allowed to signal.
t/spawn.t