summaryrefslogtreecommitdiff
path: root/test/libapt/assert.h
Commit message (Collapse)AuthorAgeFilesLines
* use Google C++ Testing Framework for libapt testsDavid Kalnischkies2014-04-161-126/+0
| | | | | | | | | | | | 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.
* clear HitEof flag in FileFd::SeekDavid Kalnischkies2014-04-161-0/+2
| | | | | | | | | fseek and co do this to their eof-flags and it is more logic this way as we will usually seek away from the end (e.g. to re-read the file). The commit also improves the testcase further and adds a test for the binary compressor codepath (as gz, bzip2 and xz are handled by libraries) via the use of 'rev' as a 'compressor'.
* follow method attribute suggestions by gccDavid Kalnischkies2014-03-131-1/+3
| | | | | Git-Dch: Ignore Reported-By: gcc -Wsuggest-attribute={pure,const,noreturn}
* warning: no previous declaration for foobar() [-Wmissing-declarations]David Kalnischkies2014-03-131-0/+9
| | | | | Git-Dch: Ignore Reported-By: gcc -Wmissing-declarations
* * test/libapt/assert.h, test/libapt/run-tests:Michael Vogt2013-03-171-0/+2
| | | - exit with status 1 on test failure
* * apt-pkg/aptconfiguration.cc:David Kalnischkies2012-05-201-0/+21
| | | | - longcode Translation files are saved with encoded underscore, so make sure to pick these files up as well for Acquire::Languages
* fix compiler warning about signed comparision on amd64, tooDavid Kalnischkies2011-10-111-0/+12
|
* * apt-pkg/deb/debmetaindex.cc:David Kalnischkies2011-10-051-0/+15
| | | | | - none is a separator, not a language: no need for Index (Closes: #624218) * apt-pkg/aptconfiguration.cc: - do not builtin languages only if none is forced (Closes: #643787)
* cppcheck complains about some possible speed improvements which could beDavid Kalnischkies2011-08-111-0/+8
| | | | | | done on the mirco-optimazation level, so lets fix them: (performance) Possible inefficient checking for emptiness. (performance) Prefer prefix ++/-- operators for non-primitive types.
* the order of languages after "none" is not important, so ignore it in testsDavid Kalnischkies2011-07-251-4/+38
|
* add our own equals method as assert doesn't really show the offendingDavid Kalnischkies2009-11-281-0/+21
values which causes the failure.