Makefile/tests: use return values to communicate errors