summary refs log tree commit diff
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2014-10-11 11:18:34 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2014-10-11 11:18:34 -0700
commit521313b4b95817c9144ab43ab121da934f99bd51 (patch)
treeea0f2847f991728b41075bfa3fb804644b343ed6
parent9fce88f3b85750eb5d6e9b8f674281a1ce86d0cd (diff)
downloadzsh-521313b4b95817c9144ab43ab121da934f99bd51.tar.gz
zsh-521313b4b95817c9144ab43ab121da934f99bd51.tar.xz
zsh-521313b4b95817c9144ab43ab121da934f99bd51.zip
Tests for workers/33429
-rw-r--r--ChangeLog4
-rw-r--r--Test/B06fc.ztst14
2 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d5dc0ac4b..b2287d27c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-10-11  Barton E. Schaefer  <schaefer@zsh.org>
+
+	* unposted: Test/B06fc.ztst: tests for 33429.
+
 2014-10-10  Barton E. Schaefer  <schaefer@zsh.org>
 
 	* 33429: Src/builtin.c, Src/hist.c: disallow non-integer values
diff --git a/Test/B06fc.ztst b/Test/B06fc.ztst
index eb73eaa14..65ee43d2e 100644
--- a/Test/B06fc.ztst
+++ b/Test/B06fc.ztst
@@ -9,3 +9,17 @@
   $ZTST_testdir/../Src/zsh -f ./fcl
 1:Checking that fc -l foo doesn't core dump when history is empty
 ?./fcl:fc:1: event not found: foo
+
+  $ZTST_testdir/../Src/zsh +Z -fsi <<< $'fc -p /dev/null 0 0\n:'
+0:Checking that fc -p doesn't core dump when history size is zero
+*?*%*
+
+  $ZTST_testdir/../Src/zsh +Z -fsi <<< 'fc -p /dev/null a 0'
+1:Checking that fc -p rejects non-integer history size
+*?*% fc: HISTSIZE must be an integer
+*?*%*
+
+  $ZTST_testdir/../Src/zsh +Z -fsi <<< 'fc -p /dev/null 0 a'
+1:Checking that fc -p rejects non-integer history save size
+*?*% fc: SAVEHIST must be an integer
+*?*%*