summaryrefslogtreecommitdiff
path: root/system/coreutils/test-tee-avoid-eintr.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/coreutils/test-tee-avoid-eintr.patch')
-rw-r--r--system/coreutils/test-tee-avoid-eintr.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/coreutils/test-tee-avoid-eintr.patch b/system/coreutils/test-tee-avoid-eintr.patch
new file mode 100644
index 000000000..c513486f7
--- /dev/null
+++ b/system/coreutils/test-tee-avoid-eintr.patch
@@ -0,0 +1,15 @@
+Upstream report: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62542
+
+diff --git a/tests/misc/tee.sh b/tests/misc/tee.sh
+index 0b97a9ea3..444cb688a 100755
+--- a/tests/misc/tee.sh
++++ b/tests/misc/tee.sh
+@@ -99,7 +99,7 @@ dd count=20 bs=100K if=/dev/zero status=none |
+ dd count=0 oflag=nonblock status=none
+ tee || { cleanup_; touch tee.fail; }
+ } >fifo
+-test -f tee.fail && fail=1
++test -f tee.fail && fail=1 || cleanup_
+
+ # Ensure tee honors --output-error modes
+ read_fifo() { timeout 10 dd count=1 if=fifo of=/dev/null status=none & }