From a03b1bdf0fb236cec2e39171babbf8cbdc1b70bc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 18 Sep 2016 14:05:10 -0400 Subject: Correctly report write errors --- wscript | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 5245082..8c62e1a 100644 --- a/wscript +++ b/wscript @@ -289,6 +289,14 @@ def test(ctx): 'sordi_static %s > %s' % (nul, nul)], 0, name='sordi-cmd-good') + autowaf.run_tests(ctx, APPNAME, [ + # Test read error by reading a directory + 'sordi_static "file://%s/"' % srcdir, + + # Test write error by writing to /dev/full + 'sordi_static "file://%s/tests/manifest.ttl" > /dev/full' % srcdir + ], 1, name='io_errors') + autowaf.run_tests(ctx, APPNAME, [ 'sordi_static > %s' % nul, 'sordi_static ftp://example.org/unsupported.ttl > %s' % nul, -- cgit v1.2.1