zsh-workers
 help / color / mirror / code / Atom feed
* New test failure
@ 2012-02-22 13:59 Vin Shelton
  2012-02-22 15:34 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Vin Shelton @ 2012-02-22 13:59 UTC (permalink / raw)
  To: zsh-workers

I didn't follow the discussion closely, but I think the recent
shwordsplit changes require a test update:

Running test: SH_WORD_SPLIT inside $(...) inside ${...}
*** /tmp/zsh.ztst.out.31468     Wed Feb 22 08:49:19 2012
--- /tmp/zsh.ztst.tout.31468    Wed Feb 22 08:49:19 2012
***************
*** 1 ****
! _'one' 'two' 'three'_
--- 1,3 ----
! _'one'
! 'two'
! 'three'_
Test /opt/src/zsh-2012-02-22/Test/D04parameter.ztst failed: output
differs from expected as shown above for:
  (setopt shwordsplit # ensure this doesn't get set in main shell...
  test_splitting ()
  {
    array="one two three"
    for e in $array; do
      echo "'$e'"
    done
  }
  test_split_var=
  : ${test_split_var:=$(test_splitting)}
  echo "_${test_split_var}_")
Was testing: SH_WORD_SPLIT inside $(...) inside ${...}
/opt/src/zsh-2012-02-22/Test/D04parameter.ztst: test failed.


  - Vin


^ permalink raw reply	[flat|nested] 4+ messages in thread
* New Test Failure
@ 2004-11-30 13:48 Vin Shelton
  2004-11-30 14:03 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Vin Shelton @ 2004-11-30 13:48 UTC (permalink / raw)
  To: zsh-workers

It looks like the $(##) change broke something:

cd Test ; make check
make[1]: Entering directory `/u/sheltonv/software/SunOS-5.8/build/zsh-2004-11-30/Test'
if test -n "cc"; then \
  cd .. && DESTDIR= \
  make MODDIR=`pwd`/Test/Modules install.modules > /dev/null; \
fi
mkdir /u/sheltonv/software/SunOS-5.8/build/zsh-2004-11-30/Test/Modules
mkdir /u/sheltonv/software/SunOS-5.8/build/zsh-2004-11-30/Test/Modules/zsh
mkdir /u/sheltonv/software/SunOS-5.8/build/zsh-2004-11-30/Test/Modules/zsh/net
for f in /u/sheltonv/software/SunOS-5.8/src/zsh-2004-11-30/Test/C01*.ztst; do \
  ZTST_exe=../Src/zsh \
    ../Src/zsh +Z -f /u/sheltonv/software/SunOS-5.8/src/zsh-2004-11-30/Test/ztst.zsh $f; \
done
/u/sheltonv/software/SunOS-5.8/src/zsh-2004-11-30/Test/C01arith.ztst: starting.
ZTST_getsect: read section name: test
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  integer light there
ZTST_getchunk: read code chunk:
  integer light there
  (( light = 42 )) &&
  let 'there = light' &&
  print $(( there ))
ZTST_test: examining line:
>42
ZTST_getredir: read redir for '>':
42
ZTST_test: examining line:

Running test: basic integer arithmetic
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.in.5429, output: /tmp/zsh.ztst.out.5429, error: /tmp/zsh.ztst.terr.5429
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
42
ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  float light there
ZTST_getchunk: read code chunk:
  float light there
  integer rnd
  (( light = 3.1415 )) &&
  let 'there = light' &&
  print -- $(( rnd = there * 10000 ))
ZTST_test: examining line:
>31415.
ZTST_getredir: read redir for '>':
31415.
ZTST_test: examining line:

Running test: basic floating point arithmetic
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.in.5429, output: /tmp/zsh.ztst.out.5429, error: /tmp/zsh.ztst.terr.5429
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
31415.
ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  print $(( 0x10 + 0X01 + 2#1010 ))
ZTST_getchunk: read code chunk:
  print $(( 0x10 + 0X01 + 2#1010 ))
ZTST_test: examining line:
>27
ZTST_getredir: read redir for '>':
27
ZTST_test: examining line:

Running test: base input
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.in.5429, output: /tmp/zsh.ztst.out.5429, error: /tmp/zsh.ztst.terr.5429
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
27
ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  float light
ZTST_getchunk: read code chunk:
  float light
  (( light = 4 ))
  print $light
  typeset -F light
  print $light
ZTST_test: examining line:
>4.000000000e+00
ZTST_getredir: read redir for '>':
4.000000000e+00
4.0000000000
ZTST_test: examining line:

Running test: conversion to float
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.in.5429, output: /tmp/zsh.ztst.out.5429, error: /tmp/zsh.ztst.terr.5429
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
4.000000000e+00
4.0000000000
ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  integer i
ZTST_getchunk: read code chunk:
  integer i
  (( i = 32.5 ))
  print $i
ZTST_test: examining line:
>32
ZTST_getredir: read redir for '>':
32
ZTST_test: examining line:

Running test: conversion to int
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.in.5429, output: /tmp/zsh.ztst.out.5429, error: /tmp/zsh.ztst.terr.5429
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
32
ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  integer i
ZTST_getchunk: read code chunk:
  integer i
  (( i = 4 - - 3 * 7 << 1 & 7 ^ 1 | 16 ** 2 ))
  print $i
ZTST_test: examining line:
>1591
ZTST_getredir: read redir for '>':
1591
ZTST_test: examining line:

Running test: precedence (arithmetic)
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.in.5429, output: /tmp/zsh.ztst.out.5429, error: /tmp/zsh.ztst.terr.5429
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
1591
ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  print $(( 1 < 2 || 2 < 2 && 3 > 4 ))
ZTST_getchunk: read code chunk:
  print $(( 1 < 2 || 2 < 2 && 3 > 4 ))
ZTST_test: examining line:
>1
ZTST_getredir: read redir for '>':
1
ZTST_test: examining line:

Running test: precedence (logical)
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.in.5429, output: /tmp/zsh.ztst.out.5429, error: /tmp/zsh.ztst.terr.5429
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
1
ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  print $(( 1 + 4 ? 3 + 2 ? 4 + 3 ? 5 + 6 ? 4 * 8 : 0 : 0 : 0 : 0 ))
ZTST_getchunk: read code chunk:
  print $(( 1 + 4 ? 3 + 2 ? 4 + 3 ? 5 + 6 ? 4 * 8 : 0 : 0 : 0 : 0 ))
ZTST_test: examining line:
>32
ZTST_getredir: read redir for '>':
32
ZTST_test: examining line:

Running test: precedence (ternary)
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.in.5429, output: /tmp/zsh.ztst.out.5429, error: /tmp/zsh.ztst.terr.5429
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
32
ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  print $(( 3 ? 2 ))
ZTST_getchunk: read code chunk:
  print $(( 3 ? 2 ))
ZTST_test: examining line:
?(eval):1: ':' expected
ZTST_getredir: read redir for '?':
(eval):1: ':' expected
ZTST_test: examining line:

Running test: parsing ternary (1)
ZTST_test: expecting status: 1
Input: /tmp/zsh.ztst.in.5429, output: /tmp/zsh.ztst.out.5429, error: /tmp/zsh.ztst.terr.5429
ZTST_execchunk: status 1
ZTST_test: test produced standard output:

ZTST_test: and standard error:
(eval):1: ':' expected
Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  print $(( 3 ? 2 : 1 : 4 ))
ZTST_getchunk: read code chunk:
  print $(( 3 ? 2 : 1 : 4 ))
ZTST_test: examining line:
?(eval):1: ':' without '?'
ZTST_getredir: read redir for '?':
(eval):1: ':' without '?'
ZTST_test: examining line:

Running test: parsing ternary (2)
ZTST_test: expecting status: 1
Input: /tmp/zsh.ztst.in.5429, output: /tmp/zsh.ztst.out.5429, error: /tmp/zsh.ztst.terr.5429
ZTST_execchunk: status 1
ZTST_test: test produced standard output:

ZTST_test: and standard error:
(eval):1: ':' without '?'
Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  print $(( 0, 4 ? 3 : 1, 5 ))
ZTST_getchunk: read code chunk:
  print $(( 0, 4 ? 3 : 1, 5 ))
ZTST_test: examining line:
>5
ZTST_getredir: read redir for '>':
5
ZTST_test: examining line:

Running test: comma operator
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.in.5429, output: /tmp/zsh.ztst.out.5429, error: /tmp/zsh.ztst.terr.5429
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
5
ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  foo=000
ZTST_getchunk: read code chunk:
  foo=000
  print $(( ##A + ##\C-a + #foo + $#foo ))
ZTST_test: examining line:
>117
ZTST_getredir: read redir for '>':
117
ZTST_test: examining line:

Running test: #, ## and $#
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.in.5429, output: /tmp/zsh.ztst.out.5429, error: /tmp/zsh.ztst.terr.5429
ZTST_execchunk: status 0
ZTST_test: test produced standard output:
117
ZTST_test: and standard error:

Test successful.
ZTST_test: looking for new test
ZTST_test: examining line:

ZTST_test: examining line:
  print $((##))
ZTST_getchunk: read code chunk:
  print $((##))
ZTST_test: examining line:
>0
ZTST_getredir: read redir for '>':
0
ZTST_test: examining line:

Running test: ## without following character
ZTST_test: expecting status: 0
Input: /tmp/zsh.ztst.in.5429, output: /tmp/zsh.ztst.out.5429, error: /tmp/zsh.ztst.terr.5429
ZTST_execchunk: status 1
Test /u/sheltonv/software/SunOS-5.8/src/zsh-2004-11-30/Test/C01arith.ztst failed: bad status 1, expected 0 from:
  print $((##))
Error output:
(eval):1: character missing after ##
Was testing: ## without following character
/u/sheltonv/software/SunOS-5.8/src/zsh-2004-11-30/Test/C01arith.ztst: test failed.
make[1]: [check] Error 1 (ignored)
rm -rf Modules .zcompdump
make[1]: Leaving directory `/u/sheltonv/software/SunOS-5.8/build/zsh-2004-11-30/Test'

HTH,
  Vin

-- 
In a minute there is time
For decisions and revisions which a minute will reverse.         T.S. Eliot
[URL: http://www.cs.amherst.edu/~ccm/prufrock.html]


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-02-22 15:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-22 13:59 New test failure Vin Shelton
2012-02-22 15:34 ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
2004-11-30 13:48 New Test Failure Vin Shelton
2004-11-30 14:03 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).