diff options
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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, |