Quit with code -1 on test failure