<feed xmlns='http://www.w3.org/2005/Atom'>
<title>apt/test/libapt/fileutl_test.cc, branch 1.4.6</title>
<subtitle>Debians commandline package manager</subtitle>
<id>https://git.kalnischkies.de/apt/atom?h=1.4.6</id>
<link rel='self' href='https://git.kalnischkies.de/apt/atom?h=1.4.6'/>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/'/>
<updated>2016-08-10T14:11:43Z</updated>
<entry>
<title>CMake: Add unit tests</title>
<updated>2016-08-10T14:11:43Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2016-08-07T16:22:14Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=06c2b40b9b9094f4f6391bd1d17cfc3725313070'/>
<id>urn:sha1:06c2b40b9b9094f4f6391bd1d17cfc3725313070</id>
<content type='text'>
Add support for our GTest based unit tests. By default, CMake will
look in /usr/src/gtest for the external GTest project, but this can
be overriden by defining GTEST_ROOT when invoking cmake.

Gbp-Dch: ignore
</content>
</entry>
<entry>
<title>don't do atomic overrides with failed files</title>
<updated>2016-06-29T12:46:34Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2016-06-29T12:46:34Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=fc5db01bb7d1546944200d197866b0b5c378f100'/>
<id>urn:sha1:fc5db01bb7d1546944200d197866b0b5c378f100</id>
<content type='text'>
We deploy atomic renames for some files, but these renames also happen
if something about the file failed which isn't really the point of the
exercise…

Closes: 828908
</content>
</entry>
<entry>
<title>fix and document on the fly compressor config</title>
<updated>2016-05-27T12:08:44Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2016-05-27T10:08:32Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=124e6916b7b02984803ff8217e8163947aae2882'/>
<id>urn:sha1:124e6916b7b02984803ff8217e8163947aae2882</id>
<content type='text'>
libapt allows to configure compressors to be used by its system via
configuration implemented in 03bef78461c6f443187b60799402624326843396,
but that was never really documented and also only partly working, which
also explains why the tests weren't using it…
</content>
</entry>
<entry>
<title>test that seeking to a position earlier in the file works</title>
<updated>2016-02-10T12:31:12Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2016-02-10T12:29:19Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=5fafaf27a5f066dc15d96c03ef154fd1d59eb891'/>
<id>urn:sha1:5fafaf27a5f066dc15d96c03ef154fd1d59eb891</id>
<content type='text'>
This tests the fix for #812994, #813000

Gbp-Dch: ignore
</content>
</entry>
<entry>
<title>Fix FileUtlTest.GetTempDir failure when run as root</title>
<updated>2015-12-19T11:51:10Z</updated>
<author>
<name>Pino Toscano</name>
<email>pino@debian.org</email>
</author>
<published>2015-12-19T11:09:18Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=dbbe1e6393dab381db0f48b2a645babdddb14eca'/>
<id>urn:sha1:dbbe1e6393dab381db0f48b2a645babdddb14eca</id>
<content type='text'>
Testing /usr as TMPDIR assumes that GetTempDir() cannot use it
because it cannot write to it; this is true for non-root users, but
not so much for root.

Since root can access everything, perform this particular test case
only when not running as root.

Closes: #808383
</content>
</entry>
<entry>
<title>ensure FileFd doesn't try to open /dev/null as atomic and co</title>
<updated>2015-11-04T17:42:28Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2015-11-02T15:02:44Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=cd46d4ebd33e74ee53bbc73dcdb7fe1d4d006558'/>
<id>urn:sha1:cd46d4ebd33e74ee53bbc73dcdb7fe1d4d006558</id>
<content type='text'>
The wrapping will fail in the best case and actually end up deleting
/dev/null in the worst case. Given that there is no point in trying to
write atomically to /dev/null as you can't read from it again just
ignore these flags if higher level code ends up trying to use them on
/dev/null.

Git-Dch: Ignore
</content>
</entry>
<entry>
<title>fileutl_test.cc: Check for /etc/passwd instead of /bin/sh</title>
<updated>2015-08-10T09:43:23Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2015-08-10T09:42:34Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=20cf708a62df5e4aa45a506819db425c6cc975fe'/>
<id>urn:sha1:20cf708a62df5e4aa45a506819db425c6cc975fe</id>
<content type='text'>
This fixes the tests on systems where usrmerge is installed.

Gbp-dch: ignore
</content>
</entry>
<entry>
<title>(style) Variable 'res' is assigned a value that is never used</title>
<updated>2014-11-08T13:26:00Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2014-11-05T17:56:12Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=23fb7b2cbbda62c99a199d29ad62205b23d35af4'/>
<id>urn:sha1:23fb7b2cbbda62c99a199d29ad62205b23d35af4</id>
<content type='text'>
Checking the return value of this (and many other calls) in this
testcase is a good idea, so we do it now.

Reported-By: cppcheck
Git-Dch: Ignore
</content>
</entry>
<entry>
<title>Division by result of sizeof(). memset() expects a size in bytes</title>
<updated>2014-11-08T13:26:00Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2014-11-05T17:42:56Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=ad5ffe1ffb203eb58e5e25fe6f4c0dabc53253c9'/>
<id>urn:sha1:ad5ffe1ffb203eb58e5e25fe6f4c0dabc53253c9</id>
<content type='text'>
"did you intend to multiply instead?" is what cppcheck helpful says and
it is absolutely right. Doesn't make a whole lot of a difference though
as we are talking about 'char' in this testcase, but just to be sure.

Reported-By: cppcheck
Git-Dch: Ignore
</content>
</entry>
<entry>
<title>test if TMPDIR is accessible before using</title>
<updated>2014-10-20T12:42:47Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2014-10-20T10:00:46Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=0d303f1764645284b33924c9be8bf29f0a32ca5c'/>
<id>urn:sha1:0d303f1764645284b33924c9be8bf29f0a32ca5c</id>
<content type='text'>
Private temporary directories as created by e.g. libpam-tmpdir are nice,
but they are also very effective in preventing our priviledge dropping
to work as TMPDIR will be set to a directory only root has access to, so
working with it as _apt will fail. We circumvent this by extending our
check for a usable TMPDIR setting by checking access rights.

Closes: 765951
</content>
</entry>
</feed>
