From 2596f879f9cc8a6eab4fd2991d9639ef22753b62 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 26 Apr 2026 01:15:38 -0400 Subject: test_fix_tox_conf: Check lines and result --- tests/test_utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/test_utils.c b/tests/test_utils.c index 4f89509..fd398e2 100644 --- a/tests/test_utils.c +++ b/tests/test_utils.c @@ -71,6 +71,8 @@ void test_fix_tox_conf() { } char **lines = file_readlines(result, 0, 0, NULL); + STASIS_ASSERT_FATAL(lines != NULL, "lines array should not be NULL"); + STASIS_ASSERT_FATAL(result != NULL, "result should not be NULL"); STASIS_ASSERT(strstr_array(lines, expected) != NULL, "{posargs} not found in result"); guard_array_free(lines); -- cgit