summaryrefslogtreecommitdiff
path: root/tests/wav.c
diff options
context:
space:
mode:
authorsteven-na <noreply.github@stvnc.dev>2026-08-05 14:30:13 -0700
committersteven-na <noreply.github@stvnc.dev>2026-08-05 14:30:13 -0700
commitcabb2e6d5101506e59abb8be1d87408acabb1136 (patch)
tree532dba66e4a00e624fd96c05fe37fb9b6ad72e67 /tests/wav.c
parent5ae677003dd79f031595b47df99e5b2a7d118ed9 (diff)
Few new helper funcs
Diffstat (limited to 'tests/wav.c')
-rw-r--r--tests/wav.c2
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) {