diff options
author | David Robillard <d@drobilla.net> | 2022-12-19 17:55:02 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 0f9816d67bc67a396607291f845ca2a33c2285a7 (patch) | |
tree | b31fd1b344305dc984a2109084fa183573a0ae43 /test/test_writer.c | |
parent | 258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d (diff) | |
download | serd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.gz serd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.bz2 serd-0f9816d67bc67a396607291f845ca2a33c2285a7.zip |
Use ZixAllocator directly
Diffstat (limited to 'test/test_writer.c')
-rw-r--r-- | test/test_writer.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/test_writer.c b/test/test_writer.c index 17790527..fce67f8f 100644 --- a/test/test_writer.c +++ b/test/test_writer.c @@ -8,7 +8,6 @@ #include "serd/buffer.h" #include "serd/env.h" #include "serd/event.h" -#include "serd/memory.h" #include "serd/node.h" #include "serd/nodes.h" #include "serd/output_stream.h" @@ -18,6 +17,7 @@ #include "serd/syntax.h" #include "serd/world.h" #include "serd/writer.h" +#include "zix/allocator.h" #include "zix/string_view.h" #include <assert.h> @@ -126,7 +126,7 @@ test_write_failed_alloc(void) serd_close_output(&output); serd_env_free(env); serd_buffer_close(&buffer); - serd_free(NULL, buffer.buf); + zix_free(NULL, buffer.buf); serd_world_free(world); } @@ -152,7 +152,7 @@ test_write_bad_event(void) char* const out = (char*)buffer.buf; assert(out); assert(!strcmp(out, "")); - serd_free(NULL, buffer.buf); + zix_free(NULL, buffer.buf); serd_writer_free(writer); serd_env_free(env); @@ -199,7 +199,7 @@ test_write_long_literal(void) "\t<http://example.org/p> \"\"\"hello \"\"\\\"world\"\"\\\"!\"\"\" .\n"; assert(!strcmp(out, expected)); - serd_free(NULL, buffer.buf); + zix_free(NULL, buffer.buf); serd_world_free(world); } @@ -429,7 +429,7 @@ test_write_empty_syntax(void) char* const out = (char*)buffer.buf; assert(out); assert(strlen(out) == 0); - serd_free(NULL, buffer.buf); + zix_free(NULL, buffer.buf); serd_writer_free(writer); serd_close_output(&output); @@ -477,7 +477,7 @@ check_pname_escape(const char* const lname, const char* const expected) char* const out = (char*)buffer.buf; assert(!strcmp(out, expected)); - serd_free(NULL, buffer.buf); + zix_free(NULL, buffer.buf); serd_world_free(world); } @@ -543,7 +543,7 @@ test_write_bad_uri(void) serd_writer_free(writer); serd_close_output(&output); - serd_free(NULL, buffer.buf); + zix_free(NULL, buffer.buf); serd_env_free(env); serd_world_free(world); } |