<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/tests/clar_libgit2.h, branch peff/binary-search-do-while</title>
<subtitle>github.com: libgit2/libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/'/>
<entry>
<title>`cl_git_exec` -&gt; `cl_git_expect`</title>
<updated>2017-02-17T13:01:49+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@github.com</email>
</author>
<published>2017-02-17T13:01:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=c52480fde52c6d65b8ded9ba65bce0b15ff312df'/>
<id>c52480fde52c6d65b8ded9ba65bce0b15ff312df</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: provide better pass/failure error messages</title>
<updated>2017-02-17T12:58:57+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@github.com</email>
</author>
<published>2017-02-17T12:13:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=a1dcc83030f9073fe29054ecaf7647dca1fec2ec'/>
<id>a1dcc83030f9073fe29054ecaf7647dca1fec2ec</id>
<content type='text'>
Provide more detailed messages when conditions pass or fail
unexpectedly.  In particular, this provides the error messages when a
test fails with a different error code than was expected.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Provide more detailed messages when conditions pass or fail
unexpectedly.  In particular, this provides the error messages when a
test fails with a different error code than was expected.
</pre>
</div>
</content>
</entry>
<entry>
<title>clar: mark `cl_git_thread_check()` as inline</title>
<updated>2016-12-12T08:16:33+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2016-11-25T13:58:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=ab0cc5a0598ecbfa2cffe7248deb5256993eb86e'/>
<id>ab0cc5a0598ecbfa2cffe7248deb5256993eb86e</id>
<content type='text'>
The function `cl_git_thread_check()` is defined as static. As the
function is defined in a header file which is included by our
tests, this can result in warnings for every test file where
`cl_git_thread_check` is never used.

Fix the issue by marking it as inline instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The function `cl_git_thread_check()` is defined as static. As the
function is defined in a header file which is included by our
tests, this can result in warnings for every test file where
`cl_git_thread_check` is never used.

Fix the issue by marking it as inline instead.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: handle life without threads</title>
<updated>2016-11-18T19:00:14+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@github.com</email>
</author>
<published>2016-11-18T18:30:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=6367c58cd482288e5cd476bd48d0d4406e3bac7b'/>
<id>6367c58cd482288e5cd476bd48d0d4406e3bac7b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>clar: Introduce assertion helpers for threads</title>
<updated>2016-11-18T16:52:28+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@github.com</email>
</author>
<published>2016-11-18T12:34:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=bbf22f8229718571059cd579945b134772f9a73d'/>
<id>bbf22f8229718571059cd579945b134772f9a73d</id>
<content type='text'>
Don't `cl_git_pass` in a child thread.  When the assertion fails, clar
will `longjmp` to its error handler, but:

&gt; The effect of a call to longjmp() where initialization of the jmp_buf
&gt; structure was not performed in the calling thread is undefined.

Instead, set up an error context that threads can populate, and the
caller can check.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't `cl_git_pass` in a child thread.  When the assertion fails, clar
will `longjmp` to its error handler, but:

&gt; The effect of a call to longjmp() where initialization of the jmp_buf
&gt; structure was not performed in the calling thread is undefined.

Instead, set up an error context that threads can populate, and the
caller can check.
</pre>
</div>
</content>
</entry>
<entry>
<title>git__getenv: utf-8 aware env reader</title>
<updated>2015-07-02T16:35:43+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2015-07-02T14:25:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=e069c621bdd62e603b048eb536f5a978a905b310'/>
<id>e069c621bdd62e603b048eb536f5a978a905b310</id>
<content type='text'>
Introduce `git__getenv` which is a UTF-8 aware `getenv` everywhere.
Make `cl_getenv` use this to keep consistent memory handling around
return values (free everywhere, as opposed to only some platforms).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduce `git__getenv` which is a UTF-8 aware `getenv` everywhere.
Make `cl_getenv` use this to keep consistent memory handling around
return values (free everywhere, as opposed to only some platforms).
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce cl_git_sandbox_init_new()</title>
<updated>2015-05-28T13:47:39+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2015-05-19T21:51:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=1c4b5cee0079f61c9fad77f8954a873d91f6d81a'/>
<id>1c4b5cee0079f61c9fad77f8954a873d91f6d81a</id>
<content type='text'>
cl_git_sandbox_init_new() will create a clar temp directory and
initialize a new repository at that location.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
cl_git_sandbox_init_new() will create a clar temp directory and
initialize a new repository at that location.
</pre>
</div>
</content>
</entry>
<entry>
<title>win32: further cleanups for 8.3 disabling</title>
<updated>2015-02-04T01:01:24+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@microsoft.com</email>
</author>
<published>2015-02-04T01:01:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=07c989e98d013132168326eb7fd6fdf91a2399b9'/>
<id>07c989e98d013132168326eb7fd6fdf91a2399b9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Added GIT_HASHSIG_ALLOW_SMALL_FILES to allow computing signatures for small files</title>
<updated>2015-01-14T16:17:56+00:00</updated>
<author>
<name>Pierre-Olivier Latour</name>
<email>pol@mac.com</email>
</author>
<published>2014-12-02T13:11:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=36fc5497810f60cacdfab249c84583d25032a150'/>
<id>36fc5497810f60cacdfab249c84583d25032a150</id>
<content type='text'>
The implementation of the hashsig API disallows computing a signature on
small files containing only a few lines. This new flag disables this
behavior.

git_diff_find_similar() sets this flag by default which means that rename
/ copy detection of small files will now work. This in turn affects the
behavior of the git_status and git_blame APIs which will now detect rename
of small files assuming the right options are passed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The implementation of the hashsig API disallows computing a signature on
small files containing only a few lines. This new flag disables this
behavior.

git_diff_find_similar() sets this flag by default which means that rename
/ copy detection of small files will now work. This in turn affects the
behavior of the git_status and git_blame APIs which will now detect rename
of small files assuming the right options are passed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use p_snprintf also in tests</title>
<updated>2014-08-05T18:51:59+00:00</updated>
<author>
<name>Jacques Germishuys</name>
<email>jacquesg@striata.com</email>
</author>
<published>2014-07-12T12:44:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libgit2.git/commit/?id=c7dd0a56bf81fa93327a1ec3c949a7d59a53f40d'/>
<id>c7dd0a56bf81fa93327a1ec3c949a7d59a53f40d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
