summaryrefslogtreecommitdiffstats
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-01-04 14:45:39 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-01-04 14:45:39 +0000
commit7d9ead9a469792959c90ec1df091e2e10b9fc11d (patch)
tree69b972644b43fa4ff6fb3dc3146c0ae6987334a4 /Test
parent24349: add comment about HELPDIR to assist replacement in Debian build. (diff)
downloadzsh-7d9ead9a469792959c90ec1df091e2e10b9fc11d.tar
zsh-7d9ead9a469792959c90ec1df091e2e10b9fc11d.tar.gz
zsh-7d9ead9a469792959c90ec1df091e2e10b9fc11d.tar.bz2
zsh-7d9ead9a469792959c90ec1df091e2e10b9fc11d.tar.lz
zsh-7d9ead9a469792959c90ec1df091e2e10b9fc11d.tar.xz
zsh-7d9ead9a469792959c90ec1df091e2e10b9fc11d.tar.zst
zsh-7d9ead9a469792959c90ec1df091e2e10b9fc11d.zip
24356: regex =~ test wasnt handled by gettext()
Diffstat (limited to 'Test')
-rw-r--r--Test/C02cond.ztst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst
index 2d0991785..0057e3a10 100644
--- a/Test/C02cond.ztst
+++ b/Test/C02cond.ztst
@@ -211,6 +211,18 @@ F:Failures in these cases do not indicate a problem in the shell.
0:-nt shouldn't abort on non-existent files
>status = 1
+# core dumps on failure
+ if zmodload -i zsh/regex 2>/dev/null; then
+ echo >regex_test.sh 'if [[ $# = 1 ]]; then
+ if [[ $1 =~ /?[^/]+:[0-9]+:$ ]]; then
+ :
+ fi
+ fi
+ exit 0'
+ $ZTST_testdir/../Src/zsh -f ./regex_test.sh
+ fi
+0:regex tests shouldn't crash
+
%clean
# This works around a bug in rm -f in some versions of Cygwin
chmod 644 unmodish