mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
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:
parent
c2b5a8e694
commit
6be5515e6a
6 changed files with 21 additions and 29 deletions
|
|
@ -156,7 +156,7 @@ static void context_state_callback(pa_context *c, void *userdata) {
|
|||
|
||||
int main(int argc, char *argv[]) {
|
||||
pa_mainloop* m = NULL;
|
||||
int i, ret = 0;
|
||||
int i, ret = 1;
|
||||
|
||||
for (i = 0; i < SAMPLE_HZ; i++)
|
||||
data[i] = (float) sin(((double) i/SAMPLE_HZ)*2*M_PI*SINE_HZ)/2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue