aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-05-29 18:34:09 -0400
committerDavid Robillard <d@drobilla.net>2016-05-29 18:34:09 -0400
commit8f7cac4752d427f833969d316542d7a82b4602ea (patch)
tree27dcc29cbca11aee2127ddcdc71a246fbed077e9 /wscript
parent78e55b937ce347eef6387499ddd91d06d73e3a7c (diff)
downloadserd-8f7cac4752d427f833969d316542d7a82b4602ea.tar.gz
serd-8f7cac4752d427f833969d316542d7a82b4602ea.tar.bz2
serd-8f7cac4752d427f833969d316542d7a82b4602ea.zip
Fix handling of file I/O errors
Diffstat (limited to 'wscript')
-rw-r--r--wscript11
1 files changed, 11 insertions, 0 deletions
diff --git a/wscript b/wscript
index c8b314ff..59416f9c 100644
--- a/wscript
+++ b/wscript
@@ -416,6 +416,17 @@ def test(ctx):
'serdi_static %s > %s' % (nul, nul)],
0, name='serdi-cmd-good')
+ # Test read error by reading a directory
+ autowaf.run_test(ctx, APPNAME,
+ 'serdi_static "file://%s/"' % srcdir,
+ 1, name='read_error')
+
+ # Test write error by writing to /dev/full
+ if os.path.exists('/dev/full'):
+ autowaf.run_test(ctx, APPNAME,
+ 'serdi_static "file://%s/tests/good/manifest.ttl" > /dev/full' % srcdir,
+ 1, name='write_error')
+
autowaf.run_tests(ctx, APPNAME, [
'serdi_static -q "file://%s/tests/bad-id-clash.ttl" > %s' % (srcdir, nul),
'serdi_static > %s' % nul,