From 59dadc9a439ffa4f9548f5a2a25076c33def7cec Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 20 Mar 2025 22:24:00 -0400 Subject: Remove unused temporary file from writer test --- test/test_writer.c | 8 +------- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.1