[RFC] build: print the error result when the tests fail

Any diagnostic information is useful when things fail.  In my case, it
printed out the fact that the tests were segfaulting.