#! /bin/sh
-# Copyright (C) 2011-2012 Free Software Foundation, Inc.
+# Copyright (C) 2011-2013 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# Check that the testsuite driver copes well with unreadable '.log'
# and '.trs' files.
-. ./defs || Exit 1
+. test-init.sh
: > t
chmod a-r t && test ! -r t || skip_ "you can still read unreadable files"
$MAKE check
rm -f test-suite.log
chmod a-r $files
- $MAKE test-suite.log || { ls -l; Exit 1; }
+ $MAKE test-suite.log || { ls -l; exit 1; }
ls -l
grep '^foofoofoo$' foo.log
grep '^:test-result: PASS' foo.trs
grep '^:test-result: SKIP' bar.trs
grep '^SKIP: bar' test-suite.log
grep '^barbarbar$' test-suite.log
- $EGREP ':.*foo|foofoofoo' test-suite.log && Exit 1
+ $EGREP ':.*foo|foofoofoo' test-suite.log && exit 1
: For shells with busted 'set -e'.
done