about summary refs log tree commit diff
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
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
-rw-r--r--ChangeLog3
-rw-r--r--Test/A05execution.ztst7
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 09201dd38..416e8de76 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2013-10-24  Peter Stephenson  <p.stephenson@samsung.com>
 
+	* 31888: Test/A05execution.ztst: add test of pipestatus
+	that was reliable failing before 31879.
+
 	* 31882: Src/Zle/compcore.c: better insulation of
 	completion widget excecution against job environment.
 
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.