The exit code of the (funky) test inferior depends on the linux kernel version (changed some time between 5.15 and 6.1).