From e5fa2b521871682a84d917685872d748597e8e18 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 25 Nov 2022 08:52:45 -0500 Subject: Consistently check write_to_path() return value in tests --- test/test_filesystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_filesystem.c b/test/test_filesystem.c index 6ca736d..5e00e28 100644 --- a/test/test_filesystem.c +++ b/test/test_filesystem.c @@ -259,7 +259,7 @@ test_copy_file(const char* const data_file_path) assert(tmp_file_path); assert(copy_path); - write_to_path(tmp_file_path, "test\n"); + assert(!write_to_path(tmp_file_path, "test\n")); assert((st = zix_copy_file(NULL, tmp_file_path, "/does/not/exist", 0U))); assert(zix_copy_file(NULL, "/does/not/exist", copy_path, 0U)); -- cgit v1.2.1