From ff8ab60025f447dc8ba834be3d9a18e5b45cfb18 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 8 Jul 2021 14:08:06 -0400 Subject: Fix accidentally disabled writer test --- test/test_writer.c | 5 +---- wscript | 4 +++- 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 -- cgit v1.2.1