diff options
Diffstat (limited to 'test/008-unwritable-outfile.test/run.sh')
-rwxr-xr-x | test/008-unwritable-outfile.test/run.sh | 13 |
1 files changed, 13 insertions, 0 deletions
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 |