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_statement.c | |
parent | 258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d (diff) | |
download | serd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.gz serd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.bz2 serd-0f9816d67bc67a396607291f845ca2a33c2285a7.zip |
Use ZixAllocator directly
Diffstat (limited to 'test/test_statement.c')
-rw-r--r-- | test/test_statement.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/test_statement.c b/test/test_statement.c index e960002f..3cad95bb 100644 --- a/test/test_statement.c +++ b/test/test_statement.c @@ -6,10 +6,10 @@ #include "failing_allocator.h" #include "serd/caret.h" -#include "serd/memory.h" #include "serd/node.h" #include "serd/nodes.h" #include "serd/statement.h" +#include "zix/allocator.h" #include <assert.h> #include <stddef.h> @@ -20,7 +20,7 @@ static void test_new(void) { - SerdAllocator* const allocator = serd_default_allocator(); + ZixAllocator* const allocator = zix_default_allocator(); assert(!serd_statement_copy(allocator, NULL)); @@ -49,7 +49,7 @@ test_copy(void) { assert(!serd_statement_copy(NULL, NULL)); - SerdAllocator* const allocator = serd_default_allocator(); + ZixAllocator* const allocator = zix_default_allocator(); assert(!serd_statement_copy(allocator, NULL)); @@ -80,7 +80,7 @@ test_copy_with_caret(void) { assert(!serd_statement_copy(NULL, NULL)); - SerdAllocator* const allocator = serd_default_allocator(); + ZixAllocator* const allocator = zix_default_allocator(); assert(!serd_statement_copy(allocator, NULL)); @@ -115,14 +115,14 @@ test_copy_with_caret(void) static void test_free(void) { - serd_statement_free(serd_default_allocator(), NULL); + serd_statement_free(zix_default_allocator(), NULL); serd_statement_free(NULL, NULL); } static void test_fields(void) { - SerdAllocator* const allocator = serd_default_allocator(); + ZixAllocator* const allocator = zix_default_allocator(); SerdNodes* const nodes = serd_nodes_new(allocator); @@ -194,7 +194,7 @@ test_fields(void) static void test_failed_alloc(void) { - SerdNodes* const nodes = serd_nodes_new(serd_default_allocator()); + SerdNodes* const nodes = serd_nodes_new(zix_default_allocator()); const SerdNode* const f = serd_nodes_get(nodes, serd_a_string("file")); const SerdNode* const s = serd_nodes_get(nodes, serd_a_uri_string(NS_EG "s")); @@ -202,7 +202,7 @@ test_failed_alloc(void) const SerdNode* const o = serd_nodes_get(nodes, serd_a_uri_string(NS_EG "o")); const SerdNode* const g = serd_nodes_get(nodes, serd_a_uri_string(NS_EG "g")); - SerdCaret* const caret = serd_caret_new(serd_default_allocator(), f, 1, 1); + SerdCaret* const caret = serd_caret_new(zix_default_allocator(), f, 1, 1); SerdFailingAllocator allocator = serd_failing_allocator(); @@ -233,7 +233,7 @@ test_failed_alloc(void) serd_statement_free(&allocator.base, copy); serd_statement_free(&allocator.base, statement); - serd_caret_free(serd_default_allocator(), caret); + serd_caret_free(zix_default_allocator(), caret); serd_nodes_free(nodes); } |