Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

New D01 test failure



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