<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/glib.git/tests/asyncqueue-test.c, branch require-python34</title>
<subtitle>gitlab.gnome.org: GNOME/glib.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/'/>
<entry>
<title>tests: replace most g_print() with g_printerr()</title>
<updated>2015-05-11T19:24:56+00:00</updated>
<author>
<name>Simon McVittie</name>
<email>simon.mcvittie@collabora.co.uk</email>
</author>
<published>2015-05-11T16:03:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=45dae4b5063f9af7de8211ced95dd73cc770a86e'/>
<id>45dae4b5063f9af7de8211ced95dd73cc770a86e</id>
<content type='text'>
I searched all files that mention g_test_run, and replaced most
g_print() calls. This avoids interfering with TAP. Exceptions:

* gio/tests/network-monitor: a manual mode that is run by
  "./network-monitor --watch" is unaffected
* glib/gtester.c: not a test
* glib/gtestutils.c: not a test
* glib/tests/logging.c: specifically exercising g_print()
* glib/tests/markup-parse.c: a manual mode that is run by
  "./markup-parse --cdata-as-text" is unaffected
* glib/tests/testing.c: specifically exercising capture of stdout
  in subprocesses
* glib/tests/utils.c: captures a subprocess's stdout
* glib/tests/testglib.c: exercises an assertion failure in g_print()

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=725981
Reviewed-by: Colin Walters &lt;walters@verbum.org&gt;
Signed-off-by: Simon McVittie &lt;simon.mcvittie@collabora.co.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I searched all files that mention g_test_run, and replaced most
g_print() calls. This avoids interfering with TAP. Exceptions:

* gio/tests/network-monitor: a manual mode that is run by
  "./network-monitor --watch" is unaffected
* glib/gtester.c: not a test
* glib/gtestutils.c: not a test
* glib/tests/logging.c: specifically exercising g_print()
* glib/tests/markup-parse.c: a manual mode that is run by
  "./markup-parse --cdata-as-text" is unaffected
* glib/tests/testing.c: specifically exercising capture of stdout
  in subprocesses
* glib/tests/utils.c: captures a subprocess's stdout
* glib/tests/testglib.c: exercises an assertion failure in g_print()

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=725981
Reviewed-by: Colin Walters &lt;walters@verbum.org&gt;
Signed-off-by: Simon McVittie &lt;simon.mcvittie@collabora.co.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>asyncqueue-test: Fix leaks in tests</title>
<updated>2013-11-10T21:40:58+00:00</updated>
<author>
<name>Stef Walter</name>
<email>stefw@gnome.org</email>
</author>
<published>2013-11-09T19:25:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=9a67fb903f394fc884fbacd2f54392632db2b898'/>
<id>9a67fb903f394fc884fbacd2f54392632db2b898</id>
<content type='text'>
https://bugzilla.gnome.org/show_bug.cgi?id=711751
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://bugzilla.gnome.org/show_bug.cgi?id=711751
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove a bunch of lingering g_thread_init()</title>
<updated>2013-06-01T03:03:19+00:00</updated>
<author>
<name>Ryan Lortie</name>
<email>desrt@desrt.ca</email>
</author>
<published>2013-05-30T04:04:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=210b1f8b4230b881d1c2e4a9e7dac571c967e091'/>
<id>210b1f8b4230b881d1c2e4a9e7dac571c967e091</id>
<content type='text'>
After this patch, there is but one remaining use of g_thread_init(),
which is in tests/slice-threadinit.c, a testcase dedicated to testing
the functionality of gslice across a g_thread_init() boundary.

This testcase is pretty meaningless these days... probably we should
delete it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After this patch, there is but one remaining use of g_thread_init(),
which is in tests/slice-threadinit.c, a testcase dedicated to testing
the functionality of gslice across a g_thread_init() boundary.

This testcase is pretty meaningless these days... probably we should
delete it.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make threads mandatory</title>
<updated>2011-09-09T16:41:55+00:00</updated>
<author>
<name>Dan Winship</name>
<email>danw@gnome.org</email>
</author>
<published>2011-08-31T18:01:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=5bc7729d16b641022f5eb8a4022515a163063ce9'/>
<id>5bc7729d16b641022f5eb8a4022515a163063ce9</id>
<content type='text'>
G_THREADS_ENABLED still exists, but is always defined. It is still
possible to use libglib without threads, but gobject (and everything
above it) is now guaranteed to be using threads (as, in fact, it was
before, since it was accidentally impossible to compile with
--disable-threads).

https://bugzilla.gnome.org/show_bug.cgi?id=616754
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
G_THREADS_ENABLED still exists, but is always defined. It is still
possible to use libglib without threads, but gobject (and everything
above it) is now guaranteed to be using threads (as, in fact, it was
before, since it was accidentally impossible to compile with
--disable-threads).

https://bugzilla.gnome.org/show_bug.cgi?id=616754
</pre>
</div>
</content>
</entry>
<entry>
<title>asyncqueue: improve test coverage</title>
<updated>2011-06-19T05:05:26+00:00</updated>
<author>
<name>Matthias Clasen</name>
<email>mclasen@redhat.com</email>
</author>
<published>2011-06-19T05:05:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=9fa5b8e5c7701d9ea40577a9a317d02c79b17d18'/>
<id>9fa5b8e5c7701d9ea40577a9a317d02c79b17d18</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>	Bug 553447 $(Q#|(B g_assert_no_error()</title>
<updated>2008-09-27T01:43:29+00:00</updated>
<author>
<name>Dan Winship</name>
<email>danw@src.gnome.org</email>
</author>
<published>2008-09-27T01:43:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=5c53925ed08402549be0c306cd0544af209f8934'/>
<id>5c53925ed08402549be0c306cd0544af209f8934</id>
<content type='text'>
	* glib/gtestutils.h (g_assert_no_error, g_assert_error): Macros to
	assert that a GError is not set, or else is set to a particular
	error.

	* glib/gtestutils.c (g_assertion_message_error): utility for
	those macros

	* glib/tests/keyfile.c:
	* tests/asyncqueue-test.c:
	* tests/bookmarkfile-test.c:
	* tests/convert-test.c:
	* tests/file-test.c: Use g_assert_error/g_assert_no_error

svn path=/trunk/; revision=7555
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	* glib/gtestutils.h (g_assert_no_error, g_assert_error): Macros to
	assert that a GError is not set, or else is set to a particular
	error.

	* glib/gtestutils.c (g_assertion_message_error): utility for
	those macros

	* glib/tests/keyfile.c:
	* tests/asyncqueue-test.c:
	* tests/bookmarkfile-test.c:
	* tests/convert-test.c:
	* tests/file-test.c: Use g_assert_error/g_assert_no_error

svn path=/trunk/; revision=7555
</pre>
</div>
</content>
</entry>
<entry>
<title>Updated to test _sort, _sort_with_data, _insert_sorted and</title>
<updated>2006-02-19T17:17:32+00:00</updated>
<author>
<name>Martyn James Russell</name>
<email>mr@src.gnome.org</email>
</author>
<published>2006-02-19T17:17:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=dde67f284da164ffe889ed0438f3d6457eda90f2'/>
<id>dde67f284da164ffe889ed0438f3d6457eda90f2</id>
<content type='text'>
* tests/asyncqueue-test.c:
* tests/list-test.c:
* tests/slist-test.c: Updated to test _sort, _sort_with_data,
_insert_sorted and _insert_sorted_with_data API.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* tests/asyncqueue-test.c:
* tests/list-test.c:
* tests/slist-test.c: Updated to test _sort, _sort_with_data,
_insert_sorted and _insert_sorted_with_data API.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the assert to not always trigger. (#326558, Daichi Kawahata)</title>
<updated>2006-01-12T20:27:16+00:00</updated>
<author>
<name>Matthias Clasen</name>
<email>mclasen@redhat.com</email>
</author>
<published>2006-01-12T20:27:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=42e7c208b7ce649b9fb5d0141c88aa74ceb54f23'/>
<id>42e7c208b7ce649b9fb5d0141c88aa74ceb54f23</id>
<content type='text'>
2006-01-12  Matthias Clasen  &lt;mclasen@redhat.com&gt;

	* tests/asyncqueue-test.c (main): Fix the
	assert to not always trigger.  (#326558,
	Daichi Kawahata)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
2006-01-12  Matthias Clasen  &lt;mclasen@redhat.com&gt;

	* tests/asyncqueue-test.c (main): Fix the
	assert to not always trigger.  (#326558,
	Daichi Kawahata)
</pre>
</div>
</content>
</entry>
<entry>
<title>Set error to NULL.</title>
<updated>2006-01-11T16:30:21+00:00</updated>
<author>
<name>Matthias Clasen</name>
<email>mclasen@redhat.com</email>
</author>
<published>2006-01-11T16:30:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=e31bd40d435123fb7f0e6c7c3d0dbbe904851b7a'/>
<id>e31bd40d435123fb7f0e6c7c3d0dbbe904851b7a</id>
<content type='text'>
2006-01-11  Matthias Clasen  &lt;mclasen@redhat.com&gt;

	* tests/asyncqueue-test.c: Set error to NULL.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
2006-01-11  Matthias Clasen  &lt;mclasen@redhat.com&gt;

	* tests/asyncqueue-test.c: Set error to NULL.
</pre>
</div>
</content>
</entry>
<entry>
<title>- Call g_queue_insert_sorted() instead of duplicating the code. - Call</title>
<updated>2005-12-07T12:09:44+00:00</updated>
<author>
<name>Martyn James Russell</name>
<email>mr@src.gnome.org</email>
</author>
<published>2005-12-07T12:09:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=c6ad7b7ac89ef2e377711a5b76d820dc7c86af25'/>
<id>c6ad7b7ac89ef2e377711a5b76d820dc7c86af25</id>
<content type='text'>
* glib/gasyncqueue.c:
- Call g_queue_insert_sorted() instead of duplicating the code.
- Call g_queue_sort() instead of duplicating the code.
- Invert sort function results to make sure the same sort function
gives the same results across glist, gslist, gqueue and
gasyncqueue.

* tests/asyncqueue-test.c:
- Updated the sort function to reflect the example in the
documentation for gasyncqueue.c.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* glib/gasyncqueue.c:
- Call g_queue_insert_sorted() instead of duplicating the code.
- Call g_queue_sort() instead of duplicating the code.
- Invert sort function results to make sure the same sort function
gives the same results across glist, gslist, gqueue and
gasyncqueue.

* tests/asyncqueue-test.c:
- Updated the sort function to reflect the example in the
documentation for gasyncqueue.c.
</pre>
</div>
</content>
</entry>
</feed>
