<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sssd.git/server/tests/common.c, branch err_facility</title>
<subtitle>Experimental work on SSSD - Systen Security Services Daemon</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/simo/public_git/sssd.git/'/>
<entry>
<title>Rename server/ directory to src/</title>
<updated>2010-02-18T18:48:45+00:00</updated>
<author>
<name>Stephen Gallagher</name>
<email>sgallagh@redhat.com</email>
</author>
<published>2010-02-18T12:49:04+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/simo/public_git/sssd.git/commit/?id=1c48b5a62f73234ed26bb20f0ab345ab61cda0ab'/>
<id>1c48b5a62f73234ed26bb20f0ab345ab61cda0ab</id>
<content type='text'>
Also update BUILD.txt
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also update BUILD.txt
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix handling of the global context in the leak detector</title>
<updated>2010-02-10T13:46:48+00:00</updated>
<author>
<name>Sumit Bose</name>
<email>sbose@redhat.com</email>
</author>
<published>2010-02-05T12:02:32+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/simo/public_git/sssd.git/commit/?id=157589bb91cc53ebc26fcc989e49523864780083'/>
<id>157589bb91cc53ebc26fcc989e49523864780083</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make resolve and failover test work with CK_FORK=no</title>
<updated>2010-02-03T15:35:18+00:00</updated>
<author>
<name>Sumit Bose</name>
<email>sbose@redhat.com</email>
</author>
<published>2010-02-03T10:54:46+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/simo/public_git/sssd.git/commit/?id=067fbea128ea5f6298feb37f9aaab347afd59d8a'/>
<id>067fbea128ea5f6298feb37f9aaab347afd59d8a</id>
<content type='text'>
The leak checking code which is used by the resolve and failover tests
frees talloc's autofree context which is not recommended. As a
consequence the initialization of tevent failed when it was called by
the second test and CF_FORK=no, because it holds some data in the
autofree context.

This patch introduces a global talloc context which should be uses by
the test as the root of their memory hierarchy instead of NULL. This
global context is used in the leak checking routines.

Not all types of memory leaks can be detected by the new version , it is
recommended to use valgrind or similar tools additionally.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The leak checking code which is used by the resolve and failover tests
frees talloc's autofree context which is not recommended. As a
consequence the initialization of tevent failed when it was called by
the second test and CF_FORK=no, because it holds some data in the
autofree context.

This patch introduces a global talloc context which should be uses by
the test as the root of their memory hierarchy instead of NULL. This
global context is used in the leak checking routines.

Not all types of memory leaks can be detected by the new version , it is
recommended to use valgrind or similar tools additionally.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a new set of helpful common functions for tests</title>
<updated>2009-10-22T17:56:22+00:00</updated>
<author>
<name>Martin Nagy</name>
<email>mnagy@redhat.com</email>
</author>
<published>2009-10-21T15:24:13+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/simo/public_git/sssd.git/commit/?id=f0d7e2a1cacdffcbc84e5ad2bdd04f405dcaeb65'/>
<id>f0d7e2a1cacdffcbc84e5ad2bdd04f405dcaeb65</id>
<content type='text'>
The leak_check_setup() and leak_check_teardown() functions can be added
to a test case with tcase_add_checked_fixture(). They will make sure
that all tests are checked for memory leaks. However, since talloc is
hierarchical and automatically frees the children, this will not catch
all cases, but might still be helpful.

The check_leaks(ctx, bytes) function takes a talloc context as an
argument and the number of bytes it should be using up (children
included). The total byte size used up by the context is determined by
the talloc_total_size() function. If the size doesn't agree,
check_leaks() will print out a talloc report on the context and makes
the current test fail.

The check_leaks_push() and check_leaks_pop() both take a talloc context
as an argument. Every time push is called, the context is "pushed" onto
an internal stack and it's current size is noted. When the context is
later "poped", the pop function will make sure that the size is the same
as when it was pushed. It will also check that it's not called
out-of-order or if the stack isn't empty.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The leak_check_setup() and leak_check_teardown() functions can be added
to a test case with tcase_add_checked_fixture(). They will make sure
that all tests are checked for memory leaks. However, since talloc is
hierarchical and automatically frees the children, this will not catch
all cases, but might still be helpful.

The check_leaks(ctx, bytes) function takes a talloc context as an
argument and the number of bytes it should be using up (children
included). The total byte size used up by the context is determined by
the talloc_total_size() function. If the size doesn't agree,
check_leaks() will print out a talloc report on the context and makes
the current test fail.

The check_leaks_push() and check_leaks_pop() both take a talloc context
as an argument. Every time push is called, the context is "pushed" onto
an internal stack and it's current size is noted. When the context is
later "poped", the pop function will make sure that the size is the same
as when it was pushed. It will also check that it's not called
out-of-order or if the stack isn't empty.
</pre>
</div>
</content>
</entry>
</feed>
