aboutsummaryrefslogtreecommitdiff
path: root/tests/test_utils.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-04-26 01:15:38 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-04-26 01:15:38 -0400
commit2596f879f9cc8a6eab4fd2991d9639ef22753b62 (patch)
treef3ad82e48b55a7ee716a54b2c8bcdd1f161d3a9c /tests/test_utils.c
parent011dfefa478f7e280cf64641644dccffe4ae5b1b (diff)
downloadstasis-2596f879f9cc8a6eab4fd2991d9639ef22753b62.tar.gz
test_fix_tox_conf: Check lines and result
Diffstat (limited to 'tests/test_utils.c')
-rw-r--r--tests/test_utils.c2
1 files changed, 2 insertions, 0 deletions
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);