about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2013-10-24 17:51:19 +0100
committerPeter Stephenson <pws@zsh.org>2013-10-24 17:51:19 +0100
commitf91bf85cc3c056cc4109eb5f34515bec35006d84 (patch)
tree686f0ac0f3dc2caf1d063e6eebf8e1a1e8e8fb95 /Test
parent7a5b85292a73b384a88a17a2b327539c608a4349 (diff)
downloadzsh-f91bf85cc3c056cc4109eb5f34515bec35006d84.tar.gz
zsh-f91bf85cc3c056cc4109eb5f34515bec35006d84.tar.xz
zsh-f91bf85cc3c056cc4109eb5f34515bec35006d84.zip
31888: Add another test for pipestatus.
This one was reliably failing before the fix, see zsh-workers-31870
Diffstat (limited to 'Test')
-rw-r--r--Test/A05execution.ztst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Test/A05execution.ztst b/Test/A05execution.ztst
index fd13e9134..8578016ab 100644
--- a/Test/A05execution.ztst
+++ b/Test/A05execution.ztst
@@ -189,3 +189,10 @@
 >2048 0 0 0
 F:This test checks for a bug in `$pipestatus[]' handling.  If it breaks then
 F:the bug is still there or it reappeared. See workers-29973 for details.
+
+  externFunc() { awk >/dev/null 2>&1; true; }
+  false | true | false | true | externFunc
+  echo $pipestatus
+0:Check $pipestatus with a known difficult case
+>1 0 1 0 0
+F:This similar test was triggering a reproducible failure with pipestatus.