]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: avoid unlikely deadlock in dd/no-allocate on some shells
authorPádraig Brady <P@draigBrady.com>
Wed, 11 Dec 2013 04:36:08 +0000 (04:36 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 13 Dec 2013 02:29:03 +0000 (02:29 +0000)
commit41e9a094ad1fd49c8887da24f0fabf222272bfbe
tree445fc57642e1f00ddb5bb7ad4ecd712214c90a4f
parent10ffe43d68f085995de5b95a8b301a9b7170eac2
tests: avoid unlikely deadlock in dd/no-allocate on some shells

* test/dd/no-allocate.sh: Use 'wait' to ensure we don't have
multiple writers to the fifo, which was seen to trigger
a very hard to reproduce deadlock with make -j20 on solaris.
Also avoid writing to the fifo with the shell; instead using dd.
(check_dd_seek_alloc): A new function refactored from the various
cases, which are now constructed from function parameters.
tests/dd/no-allocate.sh