diff options
-rw-r--r-- | test/test_writer.c | 5 | ||||
-rw-r--r-- | 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; } @@ -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 |