<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/glib.git/tests/refcount, branch pgriffis/wip/resolver-https</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>Fix signedness warnings in tests/refcount/objects.c</title>
<updated>2021-05-04T06:43:29+00:00</updated>
<author>
<name>Emmanuel Fleury</name>
<email>emmanuel.fleury@gmail.com</email>
</author>
<published>2020-11-20T20:32:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=7c69a1d5f674cb0bd5aa08ce4c759b0068e385f1'/>
<id>7c69a1d5f674cb0bd5aa08ce4c759b0068e385f1</id>
<content type='text'>
tests/refcount/objects.c: In function ‘main’:
tests/refcount/objects.c:133:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘const unsigned int’}
  133 |   for (i = 0; i &lt; n_threads; i++) {
      |                 ^
tests/refcount/objects.c:149:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘unsigned int’
  149 |   for (i = 0; i &lt; 2 * n_threads; i++) {
      |                 ^
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
tests/refcount/objects.c: In function ‘main’:
tests/refcount/objects.c:133:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘const unsigned int’}
  133 |   for (i = 0; i &lt; n_threads; i++) {
      |                 ^
tests/refcount/objects.c:149:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘unsigned int’
  149 |   for (i = 0; i &lt; 2 * n_threads; i++) {
      |                 ^
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Fix non-atomic access to some shared variables</title>
<updated>2020-11-20T14:40:19+00:00</updated>
<author>
<name>Philip Withnall</name>
<email>pwithnall@endlessos.org</email>
</author>
<published>2020-11-11T18:31:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=1a7f0002a052725fb646e136fadd5dad66222d7f'/>
<id>1a7f0002a052725fb646e136fadd5dad66222d7f</id>
<content type='text'>
And drop the `volatile` qualifier from the variables, as that doesn’t
help with thread safety.

Signed-off-by: Philip Withnall &lt;pwithnall@endlessos.org&gt;

Helps: #600
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
And drop the `volatile` qualifier from the variables, as that doesn’t
help with thread safety.

Signed-off-by: Philip Withnall &lt;pwithnall@endlessos.org&gt;

Helps: #600
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'tsan' into 'master'</title>
<updated>2019-03-05T11:46:33+00:00</updated>
<author>
<name>Philip Withnall</name>
<email>philip@tecnocode.co.uk</email>
</author>
<published>2019-03-05T11:46:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=aeb7dbad3039262c60f327a3b058db092891ee97'/>
<id>aeb7dbad3039262c60f327a3b058db092891ee97</id>
<content type='text'>
Fix thread safety issues

See merge request GNOME/glib!690</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix thread safety issues

See merge request GNOME/glib!690</pre>
</div>
</content>
</entry>
<entry>
<title>build: Move tests/refcount/closures to gobject/tests/closure-refcount</title>
<updated>2019-02-27T11:48:29+00:00</updated>
<author>
<name>Philip Withnall</name>
<email>withnall@endlessm.com</email>
</author>
<published>2019-02-27T11:48:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=c96bfd57afcd4512339516e3919611477dc33382'/>
<id>c96bfd57afcd4512339516e3919611477dc33382</id>
<content type='text'>
One step towards removing the top-level tests/ directory.

Signed-off-by: Philip Withnall &lt;withnall@endlessm.com&gt;

Helps: #1434
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
One step towards removing the top-level tests/ directory.

Signed-off-by: Philip Withnall &lt;withnall@endlessm.com&gt;

Helps: #1434
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Synchronize access to stopping flag</title>
<updated>2019-02-25T13:29:35+00:00</updated>
<author>
<name>Tomasz Miąsko</name>
<email>tomasz.miasko@gmail.com</email>
</author>
<published>2019-02-22T00:00:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=d75605e866e1049223c88ffdbd2f78be07423812'/>
<id>d75605e866e1049223c88ffdbd2f78be07423812</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>installed tests: Allow tests to set environment variables</title>
<updated>2019-02-13T09:43:49+00:00</updated>
<author>
<name>Iain Lane</name>
<email>iainl@gnome.org</email>
</author>
<published>2019-02-12T11:29:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=07a1a8031d7bc63e8bd5d524969a1efb14cd830a'/>
<id>07a1a8031d7bc63e8bd5d524969a1efb14cd830a</id>
<content type='text'>
It's necessary sometimes for installed tests to be able to run with a
custom environment. For example, the gsocketclient-slow test requires an
LD_PRELOADed library to provide a slow connect() (this is to be added in
a followup commit).

Introduce a variable `@env@` into the installed test template, which we
can override as necessary when generating `.test` files, to run tests
prefixed with `/usr/bin/env &lt;LIST OF VARIABLES&gt;`.

As the only test that requires this currently lives in `gio/tests/`, we
are only hooking this up for that directory right now. If other tests in
future require this treatment, then the support can be extended at that
point.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's necessary sometimes for installed tests to be able to run with a
custom environment. For example, the gsocketclient-slow test requires an
LD_PRELOADed library to provide a slow connect() (this is to be added in
a followup commit).

Introduce a variable `@env@` into the installed test template, which we
can override as necessary when generating `.test` files, to run tests
prefixed with `/usr/bin/env &lt;LIST OF VARIABLES&gt;`.

As the only test that requires this currently lives in `gio/tests/`, we
are only hooking this up for that directory right now. If other tests in
future require this treatment, then the support can be extended at that
point.
</pre>
</div>
</content>
</entry>
<entry>
<title>build: Drop autotools support</title>
<updated>2019-01-15T15:11:43+00:00</updated>
<author>
<name>Philip Withnall</name>
<email>withnall@endlessm.com</email>
</author>
<published>2019-01-09T11:39:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=b3efef5b6ff2515551f300aed7ca16bd728e836a'/>
<id>b3efef5b6ff2515551f300aed7ca16bd728e836a</id>
<content type='text'>
So long, and thanks for everything. We’re a Meson-only shop now.

glib-2-58 will remain the last stable GLib release series which is
buildable using autotools.

We continue to install autoconf macros for autotools-using projects
which depend on GLib; they are stable API.

Signed-off-by: Philip Withnall &lt;withnall@endlessm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
So long, and thanks for everything. We’re a Meson-only shop now.

glib-2-58 will remain the last stable GLib release series which is
buildable using autotools.

We continue to install autoconf macros for autotools-using projects
which depend on GLib; they are stable API.

Signed-off-by: Philip Withnall &lt;withnall@endlessm.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'tests-tsan' into 'master'</title>
<updated>2018-11-13T13:12:38+00:00</updated>
<author>
<name>Philip Withnall</name>
<email>philip@tecnocode.co.uk</email>
</author>
<published>2018-11-13T13:12:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=e0148985f30b7b37108259432b83e7dbbf7c0e6b'/>
<id>e0148985f30b7b37108259432b83e7dbbf7c0e6b</id>
<content type='text'>
tests: Fix some data races in tests

See merge request GNOME/glib!453</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
tests: Fix some data races in tests

See merge request GNOME/glib!453</pre>
</div>
</content>
</entry>
<entry>
<title>closures test: Avoid timeout on ARM64 CPUs</title>
<updated>2018-11-06T13:48:34+00:00</updated>
<author>
<name>Simon McVittie</name>
<email>smcv@debian.org</email>
</author>
<published>2017-12-18T10:47:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=cb98e37357b03ce078d859a78ec603e7797bc931'/>
<id>cb98e37357b03ce078d859a78ec603e7797bc931</id>
<content type='text'>
Closures use a 16-bit atomic reference count, which is really slow
on certain ARM64 CPUs such as the Cortex-A57 (glib#1316). This is
non-trivial to solve, since the public struct field cannot be enlarged
to 32-bit while preserving ABI, and 16-bit atomic operations would be new
(and rather niche) API.

Until this can be solved properly (hopefully in GLib 2.59.x), cut down
the number of signal emission cycles and bump up the timeout in the
Meson build system, so that builds won't time out. We can't just take
another zero off the number of signal emission cycles, as was done in the
original version of this patch in Debian, because if we do that it can
result in test failures when the main thread starves the other threads.

ARM64 CPUs are backwards-compatible with 32-bit ARM, and the same
slowdown can be seen when building and testing 32-bit code on these
CPUs, so check for both 32- and 64-bit ARM.

Bug-Debian: https://bugs.debian.org/880883
Co-authored-by: Iain Lane &lt;laney@debian.org&gt;
Signed-off-by: Simon McVittie &lt;smcv@debian.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closures use a 16-bit atomic reference count, which is really slow
on certain ARM64 CPUs such as the Cortex-A57 (glib#1316). This is
non-trivial to solve, since the public struct field cannot be enlarged
to 32-bit while preserving ABI, and 16-bit atomic operations would be new
(and rather niche) API.

Until this can be solved properly (hopefully in GLib 2.59.x), cut down
the number of signal emission cycles and bump up the timeout in the
Meson build system, so that builds won't time out. We can't just take
another zero off the number of signal emission cycles, as was done in the
original version of this patch in Debian, because if we do that it can
result in test failures when the main thread starves the other threads.

ARM64 CPUs are backwards-compatible with 32-bit ARM, and the same
slowdown can be seen when building and testing 32-bit code on these
CPUs, so check for both 32- and 64-bit ARM.

Bug-Debian: https://bugs.debian.org/880883
Co-authored-by: Iain Lane &lt;laney@debian.org&gt;
Signed-off-by: Simon McVittie &lt;smcv@debian.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Fix data races in refcount/signals.c</title>
<updated>2018-11-04T16:28:51+00:00</updated>
<author>
<name>Tomasz Miąsko</name>
<email>tomasz.miasko@gmail.com</email>
</author>
<published>2018-11-04T00:00:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glib.git/commit/?id=1cc745787003b0d2d7d03601bb20dd030e1c9837'/>
<id>1cc745787003b0d2d7d03601bb20dd030e1c9837</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
