src/Makefile: check exitcode of test