summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-11-25 08:52:45 -0500
committerDavid Robillard <d@drobilla.net>2022-11-25 08:52:45 -0500
commite5fa2b521871682a84d917685872d748597e8e18 (patch)
treeafa962ee845f58341b2c3f3332dc3ab34e553cc4
parentd0ed36f30fc287299307496815914799407c8d05 (diff)
downloadzix-e5fa2b521871682a84d917685872d748597e8e18.tar.gz
zix-e5fa2b521871682a84d917685872d748597e8e18.tar.bz2
zix-e5fa2b521871682a84d917685872d748597e8e18.zip
Consistently check write_to_path() return value in tests
-rw-r--r--test/test_filesystem.c2
1 files changed, 1 insertions, 1 deletions
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));