* zsh-4.3.9 test failure due to localization
@ 2008-11-04 0:57 Bernd Steinhauser
2008-11-04 9:48 ` Peter Stephenson
0 siblings, 1 reply; 3+ messages in thread
From: Bernd Steinhauser @ 2008-11-04 0:57 UTC (permalink / raw)
To: zsh-workers
Hi,
sorry to bother you again with a test failure bug. :)
One of the tests fails if the output is localized:
./C05debug.ztst: starting.
*** /tmp/zsh.ztst.err.25513 Tue Nov 4 01:53:47 2008
--- /tmp/zsh.ztst.terr.25513 Tue Nov 4 01:53:47 2008
***************
*** 1 ****
! ./zsh-trapreturn-bug2:5: no such file or directory: ./fdasfsdafd
--- 1 ----
! ./zsh-trapreturn-bug2:5: datei oder Verzeichnis nicht gefunden:
./fdasfsdafd
Test ./C05debug.ztst failed: error output differs from expected as shown
above for:
cat >zsh-trapreturn-bug2 <<-'HERE'
cmd='./fdasfsdafd'
[[ -x $cmd ]] && rm $cmd
set -o DEBUG_BEFORE_CMD
trap '[[ $? -ne 0 ]] && exit 0' DEBUG
$cmd # invalid command
# Failure
exit 10
HERE
$ZTST_testdir/../Src/zsh -f ./zsh-trapreturn-bug2
Was testing: trapreturn handling bug is properly fixed
Regards,
Bernd
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: zsh-4.3.9 test failure due to localization
2008-11-04 0:57 zsh-4.3.9 test failure due to localization Bernd Steinhauser
@ 2008-11-04 9:48 ` Peter Stephenson
2008-11-04 13:00 ` Bernd Steinhauser
0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 2008-11-04 9:48 UTC (permalink / raw)
To: zsh-workers
On Tue, 04 Nov 2008 01:57:01 +0100
Bernd Steinhauser <linux@bernd-steinhauser.de> wrote:
> sorry to bother you again with a test failure bug. :)
> One of the tests fails if the output is localized:
>
> ./C05debug.ztst: starting.
> ! ./zsh-trapreturn-bug2:5: no such file or directory: ./fdasfsdafd
> --- 1 ----
> ! ./zsh-trapreturn-bug2:5: datei oder Verzeichnis nicht gefunden:
Thanks, that's worth knowing about.
We sanitize the locale if it's been tinkered with but starting a new shell
even with "zsh -f" is particularly susceptible to problems. Anyway, we
shouldn't be relying on details of system error messages.
Index: Test/C05debug.ztst
===================================================================
RCS file: /cvsroot/zsh/zsh/Test/C05debug.ztst,v
retrieving revision 1.3
diff -u -r1.3 C05debug.ztst
--- Test/C05debug.ztst 1 Oct 2008 11:34:48 -0000 1.3
+++ Test/C05debug.ztst 4 Nov 2008 09:47:46 -0000
@@ -52,9 +52,15 @@
# Failure
exit 10
HERE
- $ZTST_testdir/../Src/zsh -f ./zsh-trapreturn-bug2
+ $ZTST_testdir/../Src/zsh -f ./zsh-trapreturn-bug2 2>erroutput.dif
+ mystat=$?
+ (
+ setopt extendedglob
+ print ${"$(< erroutput.dif)"%%:[^:]#: ./fdasfsdafd}
+ )
+ (( mystat == 0 ))
0: trapreturn handling bug is properly fixed
-?./zsh-trapreturn-bug2:5: no such file or directory: ./fdasfsdafd
+>./zsh-trapreturn-bug2:5
fn() {
setopt localtraps localoptions debugbeforecmd
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: zsh-4.3.9 test failure due to localization
2008-11-04 9:48 ` Peter Stephenson
@ 2008-11-04 13:00 ` Bernd Steinhauser
0 siblings, 0 replies; 3+ messages in thread
From: Bernd Steinhauser @ 2008-11-04 13:00 UTC (permalink / raw)
To: zsh-workers
Thanks, all tests pass now. :)
Regards,
Bernd
Peter Stephenson wrote:
> On Tue, 04 Nov 2008 01:57:01 +0100
> Bernd Steinhauser <linux@bernd-steinhauser.de> wrote:
>> sorry to bother you again with a test failure bug. :)
>> One of the tests fails if the output is localized:
>>
>> ./C05debug.ztst: starting.
>> ! ./zsh-trapreturn-bug2:5: no such file or directory: ./fdasfsdafd
>> --- 1 ----
>> ! ./zsh-trapreturn-bug2:5: datei oder Verzeichnis nicht gefunden:
>
> Thanks, that's worth knowing about.
>
> We sanitize the locale if it's been tinkered with but starting a new shell
> even with "zsh -f" is particularly susceptible to problems. Anyway, we
> shouldn't be relying on details of system error messages.
>
> Index: Test/C05debug.ztst
> ===================================================================
> RCS file: /cvsroot/zsh/zsh/Test/C05debug.ztst,v
> retrieving revision 1.3
> diff -u -r1.3 C05debug.ztst
> --- Test/C05debug.ztst 1 Oct 2008 11:34:48 -0000 1.3
> +++ Test/C05debug.ztst 4 Nov 2008 09:47:46 -0000
> @@ -52,9 +52,15 @@
> # Failure
> exit 10
> HERE
> - $ZTST_testdir/../Src/zsh -f ./zsh-trapreturn-bug2
> + $ZTST_testdir/../Src/zsh -f ./zsh-trapreturn-bug2 2>erroutput.dif
> + mystat=$?
> + (
> + setopt extendedglob
> + print ${"$(< erroutput.dif)"%%:[^:]#: ./fdasfsdafd}
> + )
> + (( mystat == 0 ))
> 0: trapreturn handling bug is properly fixed
> -?./zsh-trapreturn-bug2:5: no such file or directory: ./fdasfsdafd
> +>./zsh-trapreturn-bug2:5
>
> fn() {
> setopt localtraps localoptions debugbeforecmd
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-11-04 13:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-04 0:57 zsh-4.3.9 test failure due to localization Bernd Steinhauser
2008-11-04 9:48 ` Peter Stephenson
2008-11-04 13:00 ` Bernd Steinhauser
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).