summaryrefslogtreecommitdiff
path: root/test/libapt/globalerror_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* avoid some useless casts reported by -Wuseless-castDavid Kalnischkies2017-12-131-2/+2
| | | | | | | | | The casts are useless, but the reports show some where we can actually improve the code by replacing them with better alternatives like converting whatever int type into a string instead of casting to a specific one which might in the future be too small. Reported-By: gcc -Wuseless-cast
* Reformat and sort all includes with clang-formatJulian Andres Klode2017-07-121-1/+1
| | | | | | | | | | | | | This makes it easier to see which headers includes what. The changes were done by running git grep -l '#\s*include' \ | grep -E '.(cc|h)$' \ | xargs sed -i -E 's/(^\s*)#(\s*)include/\1#\2 include/' To modify all include lines by adding a space, and then running ./git-clang-format.sh.
* properly format multiline error messagesDavid Kalnischkies2016-04-251-0/+34
|
* use Google C++ Testing Framework for libapt testsDavid Kalnischkies2014-04-161-97/+116
| | | | | | | | | | | | My commit 45df0ad2 from 26. Nov 2009 had a little remark: "The commit also includes a very very simple testapp." This was never intended to be permanent, but as usually… The commit adds the needed make magic to compile gtest statically as it is required and links it against a small runner. All previous testcase binaries are reimplemented in gtest and combined in this runner. While most code is a 1:1 translation some had to be rewritten like compareversion_test.cc, but the coverage remains the same.
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-1/+5
| | | | | | | | Beside being a bit cleaner it hopefully also resolves oddball problems I have with high levels of parallel jobs. Git-Dch: Ignore Reported-By: iwyu (include-what-you-use)
* warning: unused parameter ‘foo’ [-Wunused-parameter]David Kalnischkies2014-03-131-1/+1
| | | | | Reported-By: gcc -Wunused-parameter Git-Dch: Ignore
* Fix typos in documentation (codespell)Michael Vogt2014-02-221-13/+13
|
* * test/libapt/globalerror_test.cc:Pino Toscano2012-01-201-2/+5
| | | | | - errno 0 has a different strerror on hurd, so generate the expected message dynamically instead of hardcoding 'Success' (Closes: #656530)
* write a proper testcase replacing the print-only uri.cc testDavid Kalnischkies2011-08-151-1/+1
|
* * apt-pkg/contrib/error.cc:David Kalnischkies2011-02-151-0/+32
| | | - ensure that va_list is not invalid in second try
* add a simple stack handling to be able to delay error handlingDavid Kalnischkies2010-06-251-0/+77