aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_writer.c')
-rw-r--r--test/test_writer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_writer.c b/test/test_writer.c
index 6590ba4a..28c8e117 100644
--- a/test/test_writer.c
+++ b/test/test_writer.c
@@ -238,8 +238,9 @@ test_strict_write(void)
serd_writer_free(writer);
serd_env_free(env);
- fclose(fd);
- remove(path);
+
+ assert(!fclose(fd));
+ assert(!remove(path));
}
// Produce a write error without setting errno