This patch fixes tests from failing that were matching on `Box<Any>`,
which was the old panic message. Since the new panic message is `Box<dyn
Any>`, the tests have been updated to match against this instead.
This test failed on an earlier version of this branch, where this did
not work properly, so I know the test works.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Previoously, if somehow this program got a wrong argument, it would
panic in the re-executed child. But that looks like a "success"
for this program! We mustn't panic unless everything is great.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
This tests that we can indeed safely panic after fork, both
a raw libc::fork and in a Command pre_exec hook.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Co-authored-by: Mara Bos <m-ou.se@m-ou.se>