aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_node_syntax.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-12-19 17:55:02 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commit0f9816d67bc67a396607291f845ca2a33c2285a7 (patch)
treeb31fd1b344305dc984a2109084fa183573a0ae43 /test/test_node_syntax.c
parent258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d (diff)
downloadserd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.gz
serd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.bz2
serd-0f9816d67bc67a396607291f845ca2a33c2285a7.zip
Use ZixAllocator directly
Diffstat (limited to 'test/test_node_syntax.c')
-rw-r--r--test/test_node_syntax.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_node_syntax.c b/test/test_node_syntax.c
index 5e106a94..ce556669 100644
--- a/test/test_node_syntax.c
+++ b/test/test_node_syntax.c
@@ -6,12 +6,12 @@
#include "failing_allocator.h"
#include "serd/env.h"
-#include "serd/memory.h"
#include "serd/node.h"
#include "serd/node_syntax.h"
#include "serd/nodes.h"
#include "serd/syntax.h"
#include "serd/value.h"
+#include "zix/allocator.h"
#include "zix/string_view.h"
#include <assert.h>
@@ -50,11 +50,11 @@ test_failed_alloc(void)
assert(!s || !c);
serd_node_free(&allocator.base, c);
- serd_free(&allocator.base, s);
+ zix_free(&allocator.base, s);
}
serd_node_free(&allocator.base, copy);
- serd_free(&allocator.base, str);
+ zix_free(&allocator.base, str);
serd_node_free(&allocator.base, node);
}
@@ -72,7 +72,7 @@ check(const SerdSyntax syntax,
const bool success = !strcmp(str, expected) && serd_node_equals(copy, node);
serd_node_free(NULL, copy);
- serd_free(NULL, str);
+ zix_free(NULL, str);
serd_env_free(env);
return success;
}
@@ -162,7 +162,7 @@ test_ntriples(void)
serd_node_free(NULL, copy);
serd_env_free(env);
- serd_free(NULL, str);
+ zix_free(NULL, str);
}
assert(check(SERD_NTRIPLES,