sfeed_update: fix test for haikuos and rc files with chmod 000 - sfeed_tests - sfeed tests and RSS and Atom files
 (HTM) git clone git://git.codemadness.org/sfeed_tests
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 723812cc3ee55eb5a851ab142a918bde8b517cdc
 (DIR) parent 943032de92624db0e455b6556159a7fce1b03bd7
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Tue, 26 Dec 2023 18:34:14 +0100
       
       sfeed_update: fix test for haikuos and rc files with chmod 000
       
       Diffstat:
         M input/sfeed_update/test.sh          |       7 ++++++-
       
       1 file changed, 6 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/input/sfeed_update/test.sh b/input/sfeed_update/test.sh
       @@ -207,7 +207,12 @@ test_config_invocation() {
        
                "$SFEED_UPDATE" "$rctmp" >/dev/null 2> "$log_stderr" # no access
                expect "1" "$?" "exit statuscode"
       -        msg="Configuration file \"${rctmp}\" cannot be read."
       +        if [ -r "$rctmp" ]; then
       +                # on haikuos test -r on a file with chmod 000 still returns 0
       +                msg='does not contain a "feeds" function'
       +        else
       +                msg="Configuration file \"${rctmp}\" cannot be read."
       +        fi
                fgrep -q "$msg" < "$log_stderr"
                expect "0" "$?" "stderr must contain text $msg"