From c4c9b96a0b96e436ef8749720df24b2b530408f1 Mon Sep 17 00:00:00 2001 From: Moritz Grimm Date: Wed, 21 Mar 2018 10:14:33 +0100 Subject: [PATCH] Ensure stream_validate() sets errstr properly --- tests/check_cfg_stream.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/check_cfg_stream.c b/tests/check_cfg_stream.c index b3e5aef..c41911a 100644 --- a/tests/check_cfg_stream.c +++ b/tests/check_cfg_stream.c @@ -195,6 +195,7 @@ START_TEST(test_stream_validate) ck_assert_int_ne(cfg_stream_validate(str, NULL), 0); ck_assert_int_ne(cfg_stream_validate(str, &errstr), 0); + ck_assert_ptr_ne(errstr, NULL); ck_assert_str_eq(errstr, "format missing or unsupported"); ck_assert_int_eq(cfg_stream_set_format(str, streams, CFG_SFMT_VORBIS, NULL), 0);