aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-11-24 17:34:21 -0500
committerDavid Robillard <d@drobilla.net>2022-11-25 07:05:57 -0500
commit292d101ed3b8a0b3d79d45af48feccba827c0942 (patch)
treef266360c7eaa329e3277008f68fa127b6c75d85a /test
parentd40a7fe79847ab46e544d9fbb845affbe876c0db (diff)
downloadserd-292d101ed3b8a0b3d79d45af48feccba827c0942.tar.gz
serd-292d101ed3b8a0b3d79d45af48feccba827c0942.tar.bz2
serd-292d101ed3b8a0b3d79d45af48feccba827c0942.zip
Always handle the return value of serd_env_set_base_uri()
Diffstat (limited to 'test')
-rw-r--r--test/test_env.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_env.c b/test/test_env.c
index dd8660dc..1de075f3 100644
--- a/test/test_env.c
+++ b/test/test_env.c
@@ -64,6 +64,8 @@ test_env(void)
const SerdNode lit = serd_node_from_string(SERD_LITERAL, USTR("hello"));
assert(serd_env_set_prefix(env, &b, &lit));
+ assert(!serd_env_new(&lit));
+
const SerdNode blank = serd_node_from_string(SERD_BLANK, USTR("b1"));
const SerdNode xblank = serd_env_expand_node(env, &blank);
assert(serd_node_equals(&xblank, &SERD_NODE_NULL));