<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/rm, branch v8.26</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.26</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.26'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2016-11-29T21:21:12Z</updated>
<entry>
<title>tests: fix ERRORs and false FAILs on some platforms</title>
<updated>2016-11-29T21:21:12Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-29T21:15:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a2bb79844fa9ef0a24a5930c88f6abd97180b9fa'/>
<id>urn:sha1:a2bb79844fa9ef0a24a5930c88f6abd97180b9fa</id>
<content type='text'>
* tests/misc/ls-time.sh: Skip the test rather than ERROR
when `touch -m -d ...` fails (Hurd).
* tests/tail-2/follow-stdin.sh: Avoid false FAILs by ignoring
the variances in sterror output.
* tests/rm/rm-readdir-fail.sh: Likewise.  Also avoid ERRORs
on systems that don't define _D_EXACT_NAMELEN.
</content>
</entry>
<entry>
<title>tests: fix false failure with ASAN in rm-readdir-fail</title>
<updated>2016-11-24T01:31:45Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-24T01:26:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4258e97b2d8e84df6347d9095c4f82f6649b1d9e'/>
<id>urn:sha1:4258e97b2d8e84df6347d9095c4f82f6649b1d9e</id>
<content type='text'>
* tests/rm/rm-readdir-fail.sh: ASAN correctly indicated
that fts was writing to freed memory.  This was because
we reused a single dirent in our readdir() test wrapper.
Since fts was deallocating those dirents, we now get
a new dirent for each call to our readdir wrapper.
</content>
</entry>
<entry>
<title>tests: fix false fails due to passing env vars to returns_</title>
<updated>2016-11-22T20:04:25Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-22T01:23:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=055b08ff7853c7c9ab791643047b1b163a227013'/>
<id>urn:sha1:055b08ff7853c7c9ab791643047b1b163a227013</id>
<content type='text'>
On BSD /bin/sh it was seen that unexported env vars passed to
returns_() would not be propagated to the wrapped command.

* cfg.mk (sc_prohibit_env_returns): Add a syntax check to disallow.
* tests/misc/csplit-io-err.sh: Rearrange to export vars in a subshell.
* tests/rm/rm-readdir-fail.sh: Likewise.
* tests/misc/nohup.sh: Export and unset vars around returns_.
* tests/misc/printenv.sh: Likewise.
Reported by Assaf Gordon
</content>
</entry>
<entry>
<title>rm: disallow --n alias for --no-preserve-root</title>
<updated>2016-10-04T22:35:59Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-10-04T12:43:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0e060d9fef64727aa2d41f00f8217c61166bb2e0'/>
<id>urn:sha1:0e060d9fef64727aa2d41f00f8217c61166bb2e0</id>
<content type='text'>
* src/rm.c (main): Ensure the full --no-preserve-root
option is specified, rather than allowing --n etc.
* tests/rm/r-root.sh: Add a test case.
* NEWS: Mention the change in behavior.

Improved by Jim Meyering.
Fixes http://bugs.gnu.org/24604
</content>
</entry>
<entry>
<title>tests: avoid false failure on 32 bit in readdir() test</title>
<updated>2016-07-06T17:13:08Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-07-06T17:08:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=54c1397510cb08433680b5b7da46a8201770e9ee'/>
<id>urn:sha1:54c1397510cb08433680b5b7da46a8201770e9ee</id>
<content type='text'>
* tests/rm/rm-readdir-fail.sh: Since we use the returned dirent
from the readdir wrapper it must be the correct type and not
just cast.  Therefore setup so that we only have to define a
wrapper for readdir(), which works appropriately on 32 and 64 bit.
Issue reported by Bernhard Voelker, where rm was seen to invoke
rmdir() on invalid file names.
</content>
</entry>
<entry>
<title>tests: verify that fts diagnoses readdir() failures</title>
<updated>2016-06-26T20:48:22Z</updated>
<author>
<name>Peter Benie</name>
<email>pjb1008@cam.ac.uk</email>
</author>
<published>2016-06-26T18:07:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=26616776c0c620ce72b3b69aa5ed63f495552a9e'/>
<id>urn:sha1:26616776c0c620ce72b3b69aa5ed63f495552a9e</id>
<content type='text'>
* tests/rm/rm-readdir-fail.sh: A new test to simulate readdir()
failing immediately or after returning a few entries, and verifying
that rm does the appropriate thing.
This was initially reported at:
http://bugzilla.opensuse.org/show_bug.cgi?id=984910
where it was mentioned that readdir() may fail
when an NFS server has a poor readdir cookie implementation.
</content>
</entry>
<entry>
<title>tests: avoid false failure due to remove() ignoring u-w on NFS</title>
<updated>2016-01-19T18:27:43Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-01-19T17:49:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=7c2e4234093542c61c6c0c7e2a91878f602dbf22'/>
<id>urn:sha1:7c2e4234093542c61c6c0c7e2a91878f602dbf22</id>
<content type='text'>
* tests/rm/rm1.sh: Also remove the group write bit which
was required on one NFS setup at least.  Note u-w was
enough to deny file creation, g-w was also required to
deny file removal.
* tests/rm/cycle.sh: Likewise.
* tests/mv/perm-1.sh: Likewise.
</content>
</entry>
<entry>
<title>tests: adjust delays to avoid false positives</title>
<updated>2016-01-18T15:32:17Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-01-18T12:41:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=3f02d93be21920299ba19e2dc93b3bcef6c9df81'/>
<id>urn:sha1:3f02d93be21920299ba19e2dc93b3bcef6c9df81</id>
<content type='text'>
* tests/rm/dangling-symlink.sh: The effective delay was only
1.5s.  So delay before the operation, and increase the iteration
count by 1 to increase the delay to 6.3s.  This failure was
noticed once on a FreeBSD 10.2 x86_64 virtual machine.
* tests/dd/stats.sh: Remove quotes on sleep argument
to ensure arguments are accumulated appropriately.
* tests/du/move-dir-while-traversing.sh: sleep before operation,
to increase the effective delay from 1.6s to 3.2s.
* tests/tail-2/flush-initial.sh: Likewise.
* tests/tail-2/pipe-f2.sh: Sleep first so that the effective delay
matches the commented value.
</content>
</entry>
<entry>
<title>test: skip test rather than fail with Solaris 10 sed</title>
<updated>2016-01-18T13:07:27Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-01-18T12:26:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=cc05c3c16d9eea8bb3918e6bd9892785291e7526'/>
<id>urn:sha1:cc05c3c16d9eea8bb3918e6bd9892785291e7526</id>
<content type='text'>
* tests/rm/r-root.sh: This test was seen to ERROR due to
sed input not having a terminating '\n'.  Therefore just skip
with diagnostics upon failure to adjust the error output with sed.
Reported by Assaf Gordon.
</content>
</entry>
<entry>
<title>maint: update all copyright year number ranges</title>
<updated>2016-01-01T14:10:41Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-01-01T14:10:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b16e999f553b682e74e0a56750f649da05130c4f'/>
<id>urn:sha1:b16e999f553b682e74e0a56750f649da05130c4f</id>
<content type='text'>
Run "make update-copyright" and then...

* gnulib: Update to latest with copyright year adjusted.
* tests/init.sh: Sync with gnulib to pick up copyright year.
* bootstrap: Likewise.
* tests/sample-test: Adjust to use the single most recent year.
</content>
</entry>
</feed>
