Discussion:
[ast-developers] Test failures in "builtin_tail.sh" test module related to command substitutions vs. return codes... / was: Re: ast-ksh alpha 2013-06-13 source posted
Roland Mainz
2013-06-18 14:09:29 UTC
Permalink
ast-ksh alpha 2013-06-13 source posted to
http://www.research.att.com/sw/download/alpha/
still a work in progess, but progress has been made in the
handling of signals in libast/vmalloc and ksh
Erm... I'm getting the following test failues in the "buildin_tail.sh"
test module (attached as "builtin_tail.sh.gz".
):
-- snip --
test builtin_tail begins at 2013-06-18+11:59:10
builtin_tail.sh[298]: test reverse_n/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist0n/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist0n/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist0nr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist0nr/long_options: command
failed with exit code 127
builtin_tail.sh[298]: test revlist0nr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist1n/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist1n/long_options: command
failed with exit code 127
builtin_tail.sh[298]: test revlist1n/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist1nr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist1nr/long_options: command
failed with exit code 127
builtin_tail.sh[298]: test revlist1nr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2n/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2n/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2nr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2nr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist3nr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist3nr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2p/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2p/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2pr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2pr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist3p/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist3p/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist3pr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist3pr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist4p/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist4p/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist4pr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist4pr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist5p/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist5p/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist5pr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist5pr/std_like: command failed
with exit code 127
test builtin_tail failed at 2013-06-18+12:00:31 with exit code 34 [ 29
tests 34 errors ]
-- snip --

AFAIK the issue boils-down to the following testcase which AFAIK
should print nothing:
-- snip --
$ VMALLOC_OPTIONS='abort' ~/bin/ksh -c 'builtin tail ; x=$( (printf
"4\n3\n2\n1\n") | tail +2r ) || print "fail $?" ; true'
fail 127
-- snip --

----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: builtin_tail.sh.gz
Type: application/x-gzip
Size: 3636 bytes
Desc: not available
URL: <http://lists.research.att.com/pipermail/ast-developers/attachments/20130618/049db62d/attachment-0001.gz>
Roland Mainz
2013-07-01 00:02:53 UTC
Permalink
Post by Roland Mainz
ast-ksh alpha 2013-06-13 source posted to
http://www.research.att.com/sw/download/alpha/
still a work in progess, but progress has been made in the
handling of signals in libast/vmalloc and ksh
Erm... I'm getting the following test failues in the "buildin_tail.sh"
test module (attached as "builtin_tail.sh.gz".
-- snip --
test builtin_tail begins at 2013-06-18+11:59:10
builtin_tail.sh[298]: test reverse_n/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist0n/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist0n/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist0nr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist0nr/long_options: command
failed with exit code 127
builtin_tail.sh[298]: test revlist0nr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist1n/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist1n/long_options: command
failed with exit code 127
builtin_tail.sh[298]: test revlist1n/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist1nr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist1nr/long_options: command
failed with exit code 127
builtin_tail.sh[298]: test revlist1nr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2n/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2n/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2nr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2nr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist3nr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist3nr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2p/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2p/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2pr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2pr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist3p/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist3p/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist3pr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist3pr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist4p/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist4p/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist4pr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist4pr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist5p/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist5p/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist5pr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist5pr/std_like: command failed
with exit code 127
test builtin_tail failed at 2013-06-18+12:00:31 with exit code 34 [ 29
tests 34 errors ]
-- snip --
AFAIK the issue boils-down to the following testcase which AFAIK
-- snip --
$ VMALLOC_OPTIONS='abort' ~/bin/ksh -c 'builtin tail ; x=$( (printf
"4\n3\n2\n1\n") | tail +2r ) || print "fail $?" ; true'
fail 127
-- snip --
David: Erm... ping! ... did you had time to look at this issue yet ?
It blows-up some tests and Solaris system scripts in quite problematic
ways... ;-(

----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: builtin_tail.sh.gz
Type: application/x-gzip
Size: 3636 bytes
Desc: not available
URL: <http://lists.research.att.com/pipermail/ast-developers/attachments/20130701/c1023de2/attachment.gz>
Roland Mainz
2013-07-17 01:05:16 UTC
Permalink
Post by Roland Mainz
Post by Roland Mainz
ast-ksh alpha 2013-06-13 source posted to
http://www.research.att.com/sw/download/alpha/
still a work in progess, but progress has been made in the
handling of signals in libast/vmalloc and ksh
Erm... I'm getting the following test failues in the "buildin_tail.sh"
test module (attached as "builtin_tail.sh.gz".
-- snip --
test builtin_tail begins at 2013-06-18+11:59:10
builtin_tail.sh[298]: test reverse_n/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist0n/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist0n/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist0nr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist0nr/long_options: command
failed with exit code 127
builtin_tail.sh[298]: test revlist0nr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist1n/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist1n/long_options: command
failed with exit code 127
builtin_tail.sh[298]: test revlist1n/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist1nr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist1nr/long_options: command
failed with exit code 127
builtin_tail.sh[298]: test revlist1nr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2n/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2n/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2nr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2nr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist3nr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist3nr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2p/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2p/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2pr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist2pr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist3p/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist3p/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist3pr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist3pr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist4p/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist4p/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist4pr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist4pr/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist5p/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist5p/std_like: command failed
with exit code 127
builtin_tail.sh[298]: test revlist5pr/legacy: command failed
with exit code 127
builtin_tail.sh[298]: test revlist5pr/std_like: command failed
with exit code 127
test builtin_tail failed at 2013-06-18+12:00:31 with exit code 34 [ 29
tests 34 errors ]
-- snip --
AFAIK the issue boils-down to the following testcase which AFAIK
-- snip --
$ VMALLOC_OPTIONS='abort' ~/bin/ksh -c 'builtin tail ; x=$( (printf
"4\n3\n2\n1\n") | tail +2r ) || print "fail $?" ; true'
fail 127
-- snip --
David: Erm... ping! ... did you had time to look at this issue yet ?
It blows-up some tests and Solaris system scripts in quite problematic
ways... ;-(
As said on IRC this night the issue is still haunting us... ;-(

----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: builtin_tail.sh.gz
Type: application/x-gzip
Size: 3636 bytes
Desc: not available
URL: <http://lists.research.att.com/pipermail/ast-developers/attachments/20130717/45734921/attachment.gz>
Loading...