Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
New D01 test failure
- X-seq: zsh-workers 26664
- From: Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: New D01 test failure
- Date: Mon, 2 Mar 2009 19:19:42 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=V45tEkii1rz1SD1VeRpZlAZerENvPs/W0G3+yuxkbvU=; b=xcx7aHLtoY2wroE+ks/WuN5MF5xo9PZXS6TnGQfsGJWPUDoBqoA3h5naq4aC+qwPFl 8hlSYAdd44Himnf9QZmEEnOaGN4leEL8dQm6mbXPGkFK+YWWIN26+67n0slvIGG6orKj OPcTUYLgivri0s1xxva4YK/fbzX2wetUvMetE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=PaklQhy7qGaz7eTgCmMG0Vd+gbiQXvZtts9ywpdEdAKEPX2TtT1/CyhMHvnv8nwI+1 V7c/mmbhPVhiTH9jM77sEX6I5saNOgQu3b64Zb1TjAPCRYinG9XFIff6U8B5A6tfxEDH J9SawR9G3rfe25+RS3YaRmrKvp3uqChhlDhFk=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Sender: ethersoft@xxxxxxxxx
Greetings!
With today's CVS update:
P ChangeLog
P Completion/Unix/Command/_django
P Completion/Unix/Command/_gnupod
P Doc/Zsh/builtins.yo
P Doc/Zsh/calsys.yo
P Doc/Zsh/prompt.yo
P Src/builtin.c
P Src/utils.c
I'm seeing a new failure in the prompt expansion test. This is on a
kubuntu 8.4 fully updated x86 system.
Details below.
Regards,
Vin
Running test: Dates produced by prompt escapes
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.in.22378, output: /tmp/zsh.ztst.out.22378, error:
/tmp/zsh.ztst.terr.22378
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
Date `03/2/09' is not in the form `DD/MM/YYYY'
Date `09-03-2' is not in the form `YY-MM-DD'
ZTST_test: and standard error:
(eval):14: bad math expression: operand expected at `'
(eval):14: bad math expression: operand expected at `!= 2 '
*** /tmp/zsh.ztst.out.22378 Mon Mar 2 19:16:04 2009
--- /tmp/zsh.ztst.tout.22378 Mon Mar 2 19:16:04 2009
***************
*** 0 ****
--- 1,2 ----
+ Date `03/2/09' is not in the form `DD/MM/YYYY'
+ Date `09-03-2' is not in the form `YY-MM-DD'
Test /opt/src/zsh-2009-03-02/Test/D01prompt.ztst failed: output
differs from expected as shown above for:
LC_ALL=C
date1=$(print -P %w)
date2=$(print -P %W)
date3=$(print -P %D)
if [[ $date1 != [A-Z][a-z][a-z][[:blank:]]##[0-9]## ]]; then
print "Date \`$date1' is not in the form \`Day DD' (e.g. \`Mon 1'"
fi
if [[ $date2 != [0-9][0-9]/[0-9][0-9]/[0-9][0-9] ]]; then
print "Date \`$date2' is not in the form \`DD/MM/YYYY'"
fi
if [[ $date3 != [0-9][0-9]-[0-9][0-9]-[0-9][0-9] ]]; then
print "Date \`$date3' is not in the form \`YY-MM-DD'"
fi
if (( $date1[5,-1] != $date2[4,5] )) || (( $date2[4,5] != $date3[7,8] ))
then
print "Days of month do not agree in $date1, $date2, $date3"
fi
if (( $date2[1,2] != $date3[4,5] )); then
print "Months do not agree in $date2, $date3"
fi
if (( $date2[7,8] != $date3[1,2] )); then
print "Years do not agree in $date2, $date3"
fi
Error output:
(eval):14: bad math expression: operand expected at `'
(eval):14: bad math expression: operand expected at `!= 2 '
Was testing: Dates produced by prompt escapes
/opt/src/zsh-2009-03-02/Test/D01prompt.ztst: test failed.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author