mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: avoid hung tests on older macOS
These tests were seen to hang on PPC Mac OS X 10.4.11 * tests/cp/existing-perm-race.sh: Protect fifo interactions with a 1 minute timeout. * tests/cp/file-perm-race.sh: Likewise. Reported in https://bugs.gnu.org/78509
This commit is contained in:
1 parent
8c9602e3a1
commit
dc4e6b6703
2 files changed
+2
-2
No files matched your search
@@ -44,7 +44,7 @@ cleanup_() { kill $pid 2>/dev/null && wait $pid; }
|
||||
|
||||
# Copy a fifo's contents. That way, we can examine the
|
||||
# destination permissions before they're finalized.
|
||||
cp -p --copy-contents fifo fifo-copy & pid=$!
|
||||
timeout 60 cp -p --copy-contents fifo fifo-copy & pid=$!
|
||||
|
||||
(
|
||||
# Now 'cp' is reading the fifo. Wait for the destination file to
|
||||
|
||||
@@ -30,7 +30,7 @@ cleanup_() { kill $pid 2>/dev/null && wait $pid; }
|
||||
|
||||
# Copy a fifo's contents. That way, we can examine the
|
||||
# destination permissions before they're finalized.
|
||||
cp -p --copy-contents fifo fifo-copy & pid=$!
|
||||
timeout 60 cp -p --copy-contents fifo fifo-copy & pid=$!
|
||||
|
||||
(
|
||||
# Now 'cp' is reading the fifo. Wait for the destination file to
|
||||
|
||||
Reference in new issue
Block a user