tests: Make sure tests assert on failures and return error status

When a test program exits with a nonzero return value (or an assert is hit),
the test is regarded as a FAIL.
This makes `make check` a little more useful.
This commit is contained in:
Maarten Bosmans 2011-10-28 16:30:05 +02:00 committed by Arun Raghavan
parent c2b5a8e694
commit 6be5515e6a
6 changed files with 21 additions and 29 deletions

View file

@ -43,12 +43,12 @@ int main(int argc, char *argv[]) {
if (strlen(exename) < allocated - 1) {
printf("%s\n", exename);
pa_xfree(exename);
break;
return 0;
}
pa_xfree(exename);
allocated *= 2;
}
return 0;
return 1;
}