diff options
| author | steven-na <noreply.github@stvnc.dev> | 2026-08-05 14:30:13 -0700 |
|---|---|---|
| committer | steven-na <noreply.github@stvnc.dev> | 2026-08-05 14:30:13 -0700 |
| commit | cabb2e6d5101506e59abb8be1d87408acabb1136 (patch) | |
| tree | 532dba66e4a00e624fd96c05fe37fb9b6ad72e67 /tests/wav.c | |
| parent | 5ae677003dd79f031595b47df99e5b2a7d118ed9 (diff) | |
Few new helper funcs
Diffstat (limited to 'tests/wav.c')
| -rw-r--r-- | tests/wav.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/wav.c b/tests/wav.c index 839b31f..dae2ef1 100644 --- a/tests/wav.c +++ b/tests/wav.c @@ -12,6 +12,7 @@ #include <criterion/criterion.h> #include <criterion/internal/assert.h> #include <criterion/internal/test.h> +#include <criterion/redirect.h> #include <string.h> Test(wav, read_file) { @@ -241,6 +242,7 @@ static int non_pcm_fd; void non_pcm_setup(void) { non_pcm_fd = mkstemp(non_pcm_path); cr_assert_geq(non_pcm_fd, 0, "mkstemp failed"); + cr_redirect_stderr(); // load_wav_file perror()s on the rejected format; that's expected } void non_pcm_teardown(void) { |