<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/tail-2/wait, branch next</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=next</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=next'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2009-09-05T16:19:03Z</updated>
<entry>
<title>tests: test old tail -f method even on systems with inotify</title>
<updated>2009-09-05T16:19:03Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2009-09-04T20:41:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=526a057602f7f312443ae4ec0653fec84bca9ff2'/>
<id>urn:sha1:526a057602f7f312443ae4ec0653fec84bca9ff2</id>
<content type='text'>
* src/tail.c (main): Add an undocumented ---disable-inotify option
to allow disabling inotify.
* tests/tail-2/pid: Run test in both normal and "disable_inotify" modes.
* tests/tail-2/tail-n0f: Likewise.
* tests/tail-2/wait: Likewise.
* tests/tail-2/append-only: Likewise.
</content>
</entry>
<entry>
<title>tests: fix a tail-2/pid failure on GNU/kFreeBSD</title>
<updated>2009-09-04T17:14:55Z</updated>
<author>
<name>Petr Salinger</name>
<email>Petr.Salinger@seznam.cz</email>
</author>
<published>2009-09-04T16:58:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a23afe7b726cabd70f1afa7c4164fc8d36fe1c17'/>
<id>urn:sha1:a23afe7b726cabd70f1afa7c4164fc8d36fe1c17</id>
<content type='text'>
* tests/tail-2/wait: Increase the file name recheck frequency to
fix a failure on systems without inotify and a file timestamp precision
of 1 second (like GNU/kFreeBSD).
</content>
</entry>
<entry>
<title>tests: fix a failure when running tail-2/wait as root</title>
<updated>2009-09-04T16:39:26Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2009-09-04T13:01:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=82f09f47624361f3788ebe630c004fe854cccdab'/>
<id>urn:sha1:82f09f47624361f3788ebe630c004fe854cccdab</id>
<content type='text'>
* tests/tail-2/wait: Silently skip a portion of the test
when running as root, rather than failing the whole test.
This regression was introduced with commit 84b5844d, 2009-09-03,
"tests: simplify and fix a race in 2 tail --follow tests".
</content>
</entry>
<entry>
<title>tests: simplify and fix a race in 2 tail --follow tests</title>
<updated>2009-09-03T09:08:06Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2009-09-02T23:39:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=84b5844d21e6958c94096f14cf75e90930e88feb'/>
<id>urn:sha1:84b5844d21e6958c94096f14cf75e90930e88feb</id>
<content type='text'>
* tests/tail-2/pid: Use the timeout command to determine process
longevity, rather than querying /proc/$pid/status.
The latter was racy in any case when inotify is used, as then
tail wakes up periodically even for unchanging files therefore
causing the check for "S (sleeping)" state to fail intermittently.
* tests/tail-2/wait: Likewise.
</content>
</entry>
<entry>
<title>tests: tail-2/wait: rename internal file name</title>
<updated>2009-07-03T15:52:30Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2009-07-03T15:10:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=66ac50e723096b7350b2a4be004c71b6b6ccc612'/>
<id>urn:sha1:66ac50e723096b7350b2a4be004c71b6b6ccc612</id>
<content type='text'>
* tests/tail-2/wait: Rename file from not_accessible to unreadable,
since all the test cares about is readability.
</content>
</entry>
<entry>
<title>tests: tail-2/wait: don't fail when run as root</title>
<updated>2009-07-03T15:52:30Z</updated>
<author>
<name>Giuseppe Scrivano</name>
<email>gscrivano@gnu.org</email>
</author>
<published>2009-07-02T21:40:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d106277d458fc65f521165248e3e8cd4eb41a5f6'/>
<id>urn:sha1:d106277d458fc65f521165248e3e8cd4eb41a5f6</id>
<content type='text'>
* tests/tail-2/wait: Ensure that the unreadable file really is not
readable before trying to run "tail -f" on it.
</content>
</entry>
<entry>
<title>tail: use inotify if it is available</title>
<updated>2009-06-15T16:34:14Z</updated>
<author>
<name>Giuseppe Scrivano</name>
<email>gscrivano@gnu.org</email>
</author>
<published>2009-06-02T06:28:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ae494d4be80df2aff50a2ac46fdc0c23de109ea3'/>
<id>urn:sha1:ae494d4be80df2aff50a2ac46fdc0c23de109ea3</id>
<content type='text'>
* NEWS: Document the new feature.
* m4/jm-macros.m4: Check if inotify is present.
* src/tail.c (tail_forever_inotify): New function.
(main): Use the inotify-based function, if possible.
* tests/Makefile.am: Add new tests for tail.
* tests/test-lib.sh (require_proc_pid_status_, get_process_status_):
New functions.
* tests/tail-2/pid: New file.
* tests/tail-2/wait: New file.
* tests/tail-2/tail-n0f: Refactor code into the test-lib.sh
require_proc_pid_status_ function.
</content>
</entry>
</feed>
