<feed xmlns='http://www.w3.org/2005/Atom'>
<title>libguestfs.git/tests/c-api, branch oldlinux</title>
<subtitle>[MIRROR] library for accessing and modifying guest disk images</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/'/>
<entry>
<title>tests: Add ./run --test option.</title>
<updated>2012-06-26T22:34:30+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2012-06-26T21:47:35+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=05d4e07918bfa9907a1fa66391e8e2e2370c64d4'/>
<id>05d4e07918bfa9907a1fa66391e8e2e2370c64d4</id>
<content type='text'>
This option, when added via
  TESTS_ENVIRONMENT = [...] $(top_builddir)/run --test
allows us to run the tests and only print the full output (including
debugging etc) when the test fails.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This option, when added via
  TESTS_ENVIRONMENT = [...] $(top_builddir)/run --test
allows us to run the tests and only print the full output (including
debugging etc) when the test fails.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Fix broken workarounds for missing O_CLOEXEC.</title>
<updated>2012-06-22T12:18:49+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2012-06-22T11:57:14+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=35882ba97722ddf9b4c55a332961b08ad8240dd7'/>
<id>35882ba97722ddf9b4c55a332961b08ad8240dd7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove obsolete valgrind rule from C API tests.</title>
<updated>2012-04-18T16:29:13+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2012-04-18T16:29:13+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=c253c69d0955242e5f23dc194ddbaf34764f79f7'/>
<id>c253c69d0955242e5f23dc194ddbaf34764f79f7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test: Thread function is a candidate for attribute noreturn.</title>
<updated>2012-03-29T12:35:48+00:00</updated>
<author>
<name>Richard Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2012-03-29T12:33:26+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=b9cb387a109f4d09cdef84a62194201e78f97cb7'/>
<id>b9cb387a109f4d09cdef84a62194201e78f97cb7</id>
<content type='text'>
The start_test_thread function never returns, it is always
cancelled by the main thread.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The start_test_thread function never returns, it is always
cancelled by the main thread.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use O_CLOEXEC / SOCK_CLOEXEC for almost all file descriptors.</title>
<updated>2012-03-14T19:30:46+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2012-03-14T19:30:46+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=606732d02e678161ff433040a21d54fc2ea8bb43'/>
<id>606732d02e678161ff433040a21d54fc2ea8bb43</id>
<content type='text'>
The presumption is that all file descriptors should be created with
the close-on-exec flag set.  The only exception are file descriptors
that we want passed through to exec'd subprocesses (mainly pipes and
stdin/stdout/stderr).

For open calls, we pass O_CLOEXEC as an extra flag, eg:

  fd = open ("foo", O_RDONLY|O_CLOEXEC);

This is a Linux-ism, but using a macro we can easily make it portable.

For sockets, similarly:

  sock = socket (..., SOCK_STREAM|SOCK_CLOEXEC, ...);

For accepted sockets, we use the Linux accept4 system call which
allows flags to be supplied, but we use the Gnulib 'accept4' module to
make this portable.

For dup, dup2, we use the Linux dup3 system call, and the Gnulib
modules 'dup3' and 'cloexec'.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The presumption is that all file descriptors should be created with
the close-on-exec flag set.  The only exception are file descriptors
that we want passed through to exec'd subprocesses (mainly pipes and
stdin/stdout/stderr).

For open calls, we pass O_CLOEXEC as an extra flag, eg:

  fd = open ("foo", O_RDONLY|O_CLOEXEC);

This is a Linux-ism, but using a macro we can easily make it portable.

For sockets, similarly:

  sock = socket (..., SOCK_STREAM|SOCK_CLOEXEC, ...);

For accepted sockets, we use the Linux accept4 system call which
allows flags to be supplied, but we use the Gnulib 'accept4' module to
make this portable.

For dup, dup2, we use the Linux dup3 system call, and the Gnulib
modules 'dup3' and 'cloexec'.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Remove/fix unused variables warnings.</title>
<updated>2012-03-12T14:10:05+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2012-03-12T14:10:05+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=2c8ead5aa0e6b821bf2d21a89e437e9a6c0ed1ca'/>
<id>2c8ead5aa0e6b821bf2d21a89e437e9a6c0ed1ca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Test header file under C++.</title>
<updated>2012-03-04T14:41:37+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2012-03-04T14:41:37+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=705971b509e1c60419444f228825533080c4ae34'/>
<id>705971b509e1c60419444f228825533080c4ae34</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test-user-cancel: Add \n to fprintf error messages.</title>
<updated>2012-02-15T10:39:50+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2012-02-15T10:39:50+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=6a70cb337cff736831b51bbc9c4331785d756c20'/>
<id>6a70cb337cff736831b51bbc9c4331785d756c20</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Tempus fugit.</title>
<updated>2012-01-18T22:05:02+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2012-01-18T22:05:02+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=08840bab44c38d0c69b5780c57b2bf370c96d58c'/>
<id>08840bab44c38d0c69b5780c57b2bf370c96d58c</id>
<content type='text'>
Update all copyright dates to 2012.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update all copyright dates to 2012.
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow /dev/null to be added multiple times.</title>
<updated>2012-01-10T16:51:36+00:00</updated>
<author>
<name>Richard W.M. Jones</name>
<email>rjones@redhat.com</email>
</author>
<published>2012-01-10T16:51:36+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rjones/public_git/libguestfs.git/commit/?id=39a10c9fabcf7646b3dcb183c22ddba577d2a075'/>
<id>39a10c9fabcf7646b3dcb183c22ddba577d2a075</id>
<content type='text'>
Change the test for duplicate drives so that you're allowed to
add /dev/null multiple times.  This corresponds to traditional
usage.

This amends commit be47b66c3033105a2b880dbc10bfc2b163b7eafe.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change the test for duplicate drives so that you're allowed to
add /dev/null multiple times.  This corresponds to traditional
usage.

This amends commit be47b66c3033105a2b880dbc10bfc2b163b7eafe.
</pre>
</div>
</content>
</entry>
</feed>
