aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-07-08 14:08:06 -0400
committerDavid Robillard <d@drobilla.net>2021-07-09 14:50:07 -0400
commitff8ab60025f447dc8ba834be3d9a18e5b45cfb18 (patch)
tree36b3eaf98624547a0703ab18b5183a273327d9cb
parentf5db9df45d01a6cc8e47ea938a8a38f960e5d1ef (diff)
downloadserd-ff8ab60025f447dc8ba834be3d9a18e5b45cfb18.tar.gz
serd-ff8ab60025f447dc8ba834be3d9a18e5b45cfb18.tar.bz2
serd-ff8ab60025f447dc8ba834be3d9a18e5b45cfb18.zip
Fix accidentally disabled writer test
-rw-r--r--test/test_writer.c5
-rw-r--r--wscript4
2 files changed, 4 insertions, 5 deletions
diff --git a/test/test_writer.c b/test/test_writer.c
index baaff736..08191585 100644
--- a/test/test_writer.c
+++ b/test/test_writer.c
@@ -41,6 +41,7 @@ test_write_long_literal(void)
assert(!serd_writer_write_statement(writer, 0, NULL, &s, &p, &o, NULL, NULL));
serd_writer_free(writer);
+ serd_env_free(env);
uint8_t* out = serd_chunk_sink_finish(&chunk);
@@ -55,11 +56,7 @@ test_write_long_literal(void)
int
main(void)
{
- const char* const path = "serd_test.ttl";
-
- test_writer(path);
test_write_long_literal();
- printf("Success\n");
return 0;
}
diff --git a/wscript b/wscript
index e9cba85b..178ac06d 100644
--- a/wscript
+++ b/wscript
@@ -234,7 +234,8 @@ def build(bld):
('test_read_chunk', 'test/test_read_chunk.c'),
('test_reader_writer', 'test/test_reader_writer.c'),
('test_string', 'test/test_string.c'),
- ('test_uri', 'test/test_uri.c')]:
+ ('test_uri', 'test/test_uri.c'),
+ ('test_writer', 'test/test_writer.c')]:
bld(features = 'c cprogram',
source = prog[1],
use = 'libserd_profiled',
@@ -563,6 +564,7 @@ def test(tst):
check(['./test_reader_writer'])
check(['./test_string'])
check(['./test_uri'])
+ check(['./test_writer'])
def test_syntax_io(check, in_name, check_name, lang):
in_path = 'test/good/%s' % in_name