From cabb2e6d5101506e59abb8be1d87408acabb1136 Mon Sep 17 00:00:00 2001 From: steven-na Date: Wed, 5 Aug 2026 14:30:13 -0700 Subject: Few new helper funcs --- tests/wav.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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 #include #include +#include #include 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) { -- cgit v1.2.3