summaryrefslogtreecommitdiffstats
path: root/Test/B12limit.ztst
Commit message (Collapse)AuthorAgeFilesLines
* 54710: handle multibyte arguments in error messagesMikael Magnusson2026-06-141-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | A lot of places check option strings char by char, then send that char to zwarn/zerr, instead of reading out the full multibyte character. Doing so is quite easy with unmeta_one in most cases, so just go ahead and do that. The print functions in fact expect a wchar_t for %c anyway. Also renames "unknown option" to "bad option" because that's what every other place calls it (also one place was missing the colon, added that). To reproduce the math errors, since it's slightly less obvious (you need a multibyte character that is also an invalid parameter name, otherwise it actually works fine) % zsh -c '(( ¯ ))' zsh:1: bad math expression: illegal character: ^ % zsh -c 'zmodload zsh/mathfunc; (( sin(1¯) ))' zsh:1: bad math expression: illegal character: ^ % zsh -c 'の=5; echo $(( の ))' # unchanged because it is working 5 Also adds some tests because B12 was looking very empty, not sure if this is the correct way to handle the intersection of possibly not compiled module with possibly not available UTF-8 locale, but X02 and some others do a similar thing with ZSH_TEST_LANG, though in those cases that's handled specially by comptest, not the test itself.
* github #82: Fix typosDimitris Apostolou2021-11-121-1/+1
|
* 45584, 45620: zsh/rlimits: Skip the tests for this module when it wasn't ↵Daniel Shahaf2020-03-271-1/+9
| | | | compiled in.
* 45590/0002 (in part): zsh/rlimits: Test that ulimit letters are unique.Daniel Shahaf2020-03-251-0/+10
|
* 45490 (+45495 and a test): refactor rlimits.cJun-ichi Takimoto2020-03-061-0/+10
Use a table of known resouces instead of generating rlimits.h by rlimits.awk.