Tests for workers/33429

This commit is contained in:
Barton E. Schaefer 2014-10-11 11:18:34 -07:00
parent 9fce88f3b8
commit 521313b4b9
2 changed files with 18 additions and 0 deletions

View File

@ -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

View File

@ -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
*?*%*