summaryrefslogtreecommitdiff
path: root/test/integration/test-bug-818628-unreadable-source
Commit message (Collapse)AuthorAgeFilesLines
* fail instead of segfault on unreadable config filesDavid Kalnischkies2016-05-201-24/+68
| | | | | | | | | | | | | The report mentions "apt list --upgradable", but there are others which have inconsistent behavior ranging from segfaulting to doing something with the partial (and hence incomplete) data. We had a recent report about sources.list (#818628), this one mentions prefences, the obvious next step is conf files… so the testcase is adapted to check for all three in file and directory versions and run a bunch of commands each time which should all have more or less the same behavior in such a case (aka error out). Closes: 824503
* cachefile: Only set members that were initialized successfullyJulian Andres Klode2016-03-191-0/+42
Otherwise, things will just start failing later down the stack, because (a) the lazy getters do not check if building was successful and (b) any further getter call would return the invalid object anyway. Also initialize VS in pkgCache to nullptr by default. Closes: #818628