4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
7 configarchitecture 'amd64'
9 if [ "$(id -u)" = '0' ]; then
10 msgskip 'Tests for unreadable files do not work as root'
14 insertinstalledpackage 'foo' 'amd64' '1'
15 insertpackage 'unstable' 'foo' 'amd64' '2'
20 testsuccess aptget indextargets
23 chmod -r rootdir/var/lib/dpkg/status
25 testfailureequal "E
: Could not open
file ${TMPWORKINGDIRECTORY}/rootdir
/var
/lib
/dpkg
/status
- open
(13: Permission denied
)
26 E
: Problem opening
${TMPWORKINGDIRECTORY}/rootdir
/var
/lib
/dpkg
/status
27 E
: The package lists or status
file could not be parsed or opened.
" aptget indextargets