runtests.pl: make sure exit value takes account of non-standard test failures.