From a46e7a49e642c9b5b9f2bcbf8367c888714c7e93 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Wed, 18 May 2016 14:47:22 +1200 Subject: Add simple test for denied read permission or other open failure --- test/error/open-fail-simple.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 test/error/open-fail-simple.sh (limited to 'test/error/open-fail-simple.sh') diff --git a/test/error/open-fail-simple.sh b/test/error/open-fail-simple.sh new file mode 100755 index 0000000..c8c67f7 --- /dev/null +++ b/test/error/open-fail-simple.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +t="$0.tmp" + +cp ../input/white.pgm $t +chmod -r $t + +${EXECUTABLE} $t > /dev/null +ret=$? + +rm $t + +exit $ret -- cgit v1.1