From 01a3d56ab3c71a065c3b827740dade5f27e95ef3 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 23 Apr 2016 23:44:32 +1200 Subject: Improved test coverage --- test/008-unwritable-outfile.test/run.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 test/008-unwritable-outfile.test/run.sh (limited to 'test/008-unwritable-outfile.test/run.sh') diff --git a/test/008-unwritable-outfile.test/run.sh b/test/008-unwritable-outfile.test/run.sh new file mode 100755 index 0000000..c8f1b4c --- /dev/null +++ b/test/008-unwritable-outfile.test/run.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +touch track.raw +chmod -w track.raw + +echo -e '0:0:0\n1:0:0' | ${EXECUTABLE} -r 1 -c 1 -i /dev/null -s 1 -f track.raw + +if [ $? -eq 0 ]; then + exit 1 +else + rm -f track.raw + exit 0 +fi -- cgit v1.1