mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -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
|
|
@ -25,13 +25,13 @@
|
|||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <pulse/pulseaudio.h>
|
||||
#include <pulse/mainloop.h>
|
||||
|
||||
#include <pulsecore/macro.h>
|
||||
#include <pulsecore/thread.h>
|
||||
|
||||
#define INTERPOLATE
|
||||
|
|
@ -87,7 +87,7 @@ static void stream_latency_cb(pa_stream *p, void *userdata) {
|
|||
|
||||
/* This is called whenever the context status changes */
|
||||
static void context_state_callback(pa_context *c, void *userdata) {
|
||||
assert(c);
|
||||
pa_assert(c);
|
||||
|
||||
switch (pa_context_get_state(c)) {
|
||||
case PA_CONTEXT_CONNECTING:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue