Make sure the test reports error instead of always exiting 1.

--- a/src/regression-test.c
+++ b/src/regression-test.c
@@ -326,7 +326,7 @@ int main(int argc, char **argv)
 	cleanup();
 
 	printf("\nRan %d tests - %d failed\n", testcnt, failcnt);
-	return 1;
+	return failcnt > 0;
 }
 
 /* Calls putf and executes cmdSpec. Returns a result object */
