Return nonzero exit status if the test fails. (#118729)