<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wayland/tests/array-test.c, branch master</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/wayland/atom/tests/array-test.c?h=master</id>
<link rel='self' href='http://git.sudomsg.com/mirror/wayland/atom/tests/array-test.c?h=master'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/'/>
<updated>2019-06-05T10:01:07Z</updated>
<entry>
<title>Avoid pointer arithmetic on `void *`</title>
<updated>2019-06-05T10:01:07Z</updated>
<author>
<name>Michael Forney</name>
<email>mforney@mforney.org</email>
</author>
<published>2019-06-01T22:01:23Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=678c8681e28739da1fea667ae59118cfc0968497'/>
<id>urn:sha1:678c8681e28739da1fea667ae59118cfc0968497</id>
<content type='text'>
The pointer operand to the binary `+` operator must be to a complete
object type. Since we are working with byte sizes, use `char *` for
arithmetic instead.

Signed-off-by: Michael Forney &lt;mforney@mforney.org&gt;
</content>
</entry>
<entry>
<title>array-test: Include wayland-util.h and simplify init test</title>
<updated>2016-10-18T09:24:53Z</updated>
<author>
<name>Yong Bakos</name>
<email>ybakos@humanoriented.com</email>
</author>
<published>2016-09-27T18:03:50Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=a1ab2c03ae7471895f8d24f9186c5ac288545e7f'/>
<id>urn:sha1:a1ab2c03ae7471895f8d24f9186c5ac288545e7f</id>
<content type='text'>
Include wayland-util.h in addition to wayland-private.h, to be more explicit
about where wl_array is defined.

Remove the useless repeated testing of wl_array_init, because if it fails once
out of thousands of iterations we're all doomed anyway.

Signed-off-by: Yong Bakos &lt;ybakos@humanoriented.com&gt;
Reviewed-by: Eric Engestrom &lt;eric.engestrom@imgtec.com&gt;
[Pekka: add the memset]
Signed-off-by: Pekka Paalanen &lt;pekka.paalanen@collabora.co.uk&gt;
</content>
</entry>
<entry>
<title>tests: Test wl_array_release</title>
<updated>2016-10-18T09:24:53Z</updated>
<author>
<name>Yong Bakos</name>
<email>ybakos@humanoriented.com</email>
</author>
<published>2016-09-27T18:03:49Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=f04f2187810fc8dcda92305df76fb54a255c20f9'/>
<id>urn:sha1:f04f2187810fc8dcda92305df76fb54a255c20f9</id>
<content type='text'>
array-test.c did not cover wl_array_release, so add one test that specifically
tests this method.

Signed-off-by: Yong Bakos &lt;ybakos@humanoriented.com&gt;
Reviewed-by: Eric Engestrom &lt;eric.engestrom@imgtec.com&gt;
[Pekka: do not overwrite array.data]
Signed-off-by: Pekka Paalanen &lt;pekka.paalanen@collabora.co.uk&gt;
</content>
</entry>
<entry>
<title>tests: Don't increment variables inside an assert()</title>
<updated>2015-07-10T07:12:36Z</updated>
<author>
<name>Bryce Harrington</name>
<email>bryce@osg.samsung.com</email>
</author>
<published>2015-06-19T22:58:01Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=c2547c70a739d74f02979a8b590018ad6cb440d8'/>
<id>urn:sha1:c2547c70a739d74f02979a8b590018ad6cb440d8</id>
<content type='text'>
Addresses this warning found by Denis Denisov:

  [tests/array-test.c:137]: (warning) Assert statement modifies 'i'.

Signed-off-by: Bryce Harrington &lt;bryce@osg.samsung.com&gt;
Reviewed-by: Jon A. Cruz &lt;jonc@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>tests: Update boilerplate from MIT X11 license to MIT Expat license</title>
<updated>2015-06-12T22:31:24Z</updated>
<author>
<name>Bryce Harrington</name>
<email>bryce@osg.samsung.com</email>
</author>
<published>2015-06-10T09:57:59Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=773babedfca8f0aa60903aed4a6856cd7e36227d'/>
<id>urn:sha1:773babedfca8f0aa60903aed4a6856cd7e36227d</id>
<content type='text'>
Signed-off-by: Bryce Harrington &lt;bryce@osg.samsung.com&gt;
Reviewed-by: Pekka Paalanen &lt;pekka.paalanen@collabora.co.uk&gt;
</content>
</entry>
<entry>
<title>array-test: assert wl_array_add result is not NULL</title>
<updated>2014-01-15T18:46:08Z</updated>
<author>
<name>U. Artie Eoff</name>
<email>ullysses.a.eoff@intel.com</email>
</author>
<published>2014-01-10T20:17:24Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=fcf5f06b7d335d9811dddab6572ba495f74c5838'/>
<id>urn:sha1:fcf5f06b7d335d9811dddab6572ba495f74c5838</id>
<content type='text'>
Signed-off-by: U. Artie Eoff &lt;ullysses.a.eoff@intel.com&gt;
</content>
</entry>
<entry>
<title>tests: fix make check for out-of-tree builds</title>
<updated>2012-06-30T19:58:37Z</updated>
<author>
<name>Dylan Noblesmith</name>
<email>nobled@dreamwidth.org</email>
</author>
<published>2012-06-15T22:44:28Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=b486e3aba5c7618b7f6311e82b5fdb2c93f2beab'/>
<id>urn:sha1:b486e3aba5c7618b7f6311e82b5fdb2c93f2beab</id>
<content type='text'>
It was failing with missing include files.

While here, destroy the ugly "../src/..." include
paths used in the tests that was just hacking around
this problem in the Makefile:

sed -i s/..\\/src\\/// tests/*.c
</content>
</entry>
<entry>
<title>tests: Fix signedness warnings</title>
<updated>2012-04-13T14:11:11Z</updated>
<author>
<name>Kristian Høgsberg</name>
<email>krh@bitplanet.net</email>
</author>
<published>2012-04-13T14:11:11Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=ac06144cc94c893b0a8ae53ed7e241f3bd7631e4'/>
<id>urn:sha1:ac06144cc94c893b0a8ae53ed7e241f3bd7631e4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add simple memory leak check to all tests.</title>
<updated>2012-03-24T18:37:42Z</updated>
<author>
<name>U. Artie Eoff</name>
<email>ullysses.a.eoff@intel.com</email>
</author>
<published>2012-03-23T17:01:23Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=a0e590a0f3ea87b7616cf197edd240b7b99fcc2e'/>
<id>urn:sha1:a0e590a0f3ea87b7616cf197edd240b7b99fcc2e</id>
<content type='text'>
Wrap all tests with a memory balance check to detect potential
memory leaks.
Fixed a few tests that had memory leaks contained in the tests
themselves.

Signed-off-by: U. Artie Eoff &lt;ullysses.a.eoff@intel.com&gt;
</content>
</entry>
<entry>
<title>Add wl_array_for_each</title>
<updated>2012-03-04T18:40:49Z</updated>
<author>
<name>Kristian Høgsberg</name>
<email>krh@bitplanet.net</email>
</author>
<published>2012-03-04T18:40:49Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=8e2cac7ae4b36a81324a744d229a3a29690c214b'/>
<id>urn:sha1:8e2cac7ae4b36a81324a744d229a3a29690c214b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: Add Unit tests for wl_map and wl_array data structures</title>
<updated>2012-03-02T23:05:33Z</updated>
<author>
<name>Kristian Høgsberg</name>
<email>krh@bitplanet.net</email>
</author>
<published>2012-03-02T23:03:16Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=62d25699540a71aa42f6414cd51cedfb8d3a3392'/>
<id>urn:sha1:62d25699540a71aa42f6414cd51cedfb8d3a3392</id>
<content type='text'>
We use a simple test-runner helper that runs each test in a separate
process and reports the pass/fail rate at the end.
</content>
</entry>
</feed>
