diff options
author | David Robillard <d@drobilla.net> | 2025-03-20 22:24:00 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2025-03-20 22:24:00 -0400 |
commit | 59dadc9a439ffa4f9548f5a2a25076c33def7cec (patch) | |
tree | 1b70581a6184247264997ed04868888a5cde3273 | |
parent | 8c4b8326bd3ac9c7ab2f2547909b55b761cd741f (diff) | |
download | serd-59dadc9a439ffa4f9548f5a2a25076c33def7cec.tar.gz serd-59dadc9a439ffa4f9548f5a2a25076c33def7cec.tar.bz2 serd-59dadc9a439ffa4f9548f5a2a25076c33def7cec.zip |
Remove unused temporary file from writer test
-rw-r--r-- | test/test_writer.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/test/test_writer.c b/test/test_writer.c index 7e135517..51f5d9ed 100644 --- a/test/test_writer.c +++ b/test/test_writer.c @@ -214,13 +214,9 @@ test_write_bad_anon_stack(void) static void test_strict_write(void) { - const char* const path = "serd_strict_write_test.ttl"; - FILE* const fd = fopen(path, "wb"); - assert(fd); - SerdEnv* const env = serd_env_new(NULL); SerdWriter* const writer = serd_writer_new( - SERD_TURTLE, (SerdStyle)SERD_STYLE_STRICT, env, NULL, null_sink, fd); + SERD_TURTLE, (SerdStyle)SERD_STYLE_STRICT, env, NULL, null_sink, NULL); assert(writer); const uint8_t bad_str[] = {0xFF, 0x90, 'h', 'i', 0}; @@ -239,8 +235,6 @@ test_strict_write(void) serd_writer_free(writer); serd_env_free(env); - assert(!fclose(fd)); - assert(!remove(path)); } // Produce a write error without setting errno |