about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2014-06-04 22:50:48 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2014-06-04 22:50:48 -0700
commit92f62fed0054cc8797cd2f1904c556b80d589cf7 (patch)
tree9371d098d6be31319e626561c4b931a040ace1e9
parent69378db3c53cea12d8c5f20380de5017e4e72611 (diff)
downloadzsh-92f62fed0054cc8797cd2f1904c556b80d589cf7.tar.gz
zsh-92f62fed0054cc8797cd2f1904c556b80d589cf7.tar.xz
zsh-92f62fed0054cc8797cd2f1904c556b80d589cf7.zip
32711: run "continue" test in a new shell
-rw-r--r--ChangeLog4
-rw-r--r--Test/A07control.ztst6
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index bbbec84a4..adc98a6a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2014-06-04  Barton E. Schaefer  <schaefer@zsh.org>
 
+	* 32711: Test/A07control.ztst: run "continue" test in a new
+	shell, lest it inadvertently continue the loop that reads the
+	test chunks from this file
+
 	* Daniel Shahaf: 32708: Doc/Zsh/expn.yo, Src/glob.c,
 	Test/D02glob.ztst: glob qualifier (Y) implies (oN), plus
 	incidental patch to avoid adding a meaningless bitvalue to
diff --git a/Test/A07control.ztst b/Test/A07control.ztst
index b9b89b588..397a821f1 100644
--- a/Test/A07control.ztst
+++ b/Test/A07control.ztst
@@ -23,12 +23,12 @@
 >start 255
 >255
 
-  fn() {
+  $ZTST_testdir/../Src/zsh -fc 'fn() {
     continue
   }
-  fn
+  fn'
 1:continue outside loop
-?fn:continue:1 not in while, until, select, or repeat loop
+?fn:continue:1: not in while, until, select, or repeat loop
 
   for outer in 0 1 2 3; do
     print outer $outer