tests/runall.tcl: support tests that fork
commit4c8046df1368a00dae6075a4f1e493991cd95742
authorSteve Bennett <steveb@workware.net.au>
Sat, 2 May 2020 06:28:53 +0000 (2 16:28 +1000)
committerSteve Bennett <steveb@workware.net.au>
Tue, 5 May 2020 22:18:25 +0000 (6 08:18 +1000)
tree37b0ea225330a0822ed48d5c6b11b54279b1fdc5
parentcc15115823f58221212ac42394243dc032732785
tests/runall.tcl: support tests that fork

Because we use catch -exit { ... }, if a test uses os.fork
we will return in both the parent in the child. To fix this,
require the child to use exit 99, and detect this case and exit
from the child in this case.

Signed-off-by: Steve Bennett <steveb@workware.net.au>
tests/runall.tcl