From cae15d15c847faba203e40e2a327b23a1ebffb48 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 28 Jun 2020 19:46:47 +0200 Subject: Make Writer always write to a ByteSink --- test/meson.build | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/meson.build') diff --git a/test/meson.build b/test/meson.build index 9724f18e..1245e29d 100644 --- a/test/meson.build +++ b/test/meson.build @@ -5,6 +5,7 @@ run_test_suite = find_program('run_test_suite.py') wrapper = meson.get_cross_property('exe_wrapper', '') unit_tests = [ + 'byte_sink', 'caret', 'env', 'free_null', @@ -83,6 +84,7 @@ if get_option('utils') ['-o'], ['-p'], ['-r'], + ['-w'], ['-z'], ['-s', ' a .'], ] @@ -166,6 +168,13 @@ if get_option('utils') env: test_env, suite: 'io_errors') + test('write_bad_file', serdi, + args: ['-w', '/does/not/exist.ttl', + 'file://@0@/serd.ttl'.format(meson.source_root())], + env: test_env, + should_fail: true, + suite: 'io_errors') + # RDF test suites ## Serd-specific test suites -- cgit v1.2.1