zsh-workers
 help / color / mirror / code / Atom feed
* 4.3.6/cvs: Test failed: Y02compmatch.ztst
@ 2008-10-11 22:00 Bernd Steinhauser
  2008-10-11 22:16 ` Peter Stephenson
  0 siblings, 1 reply; 6+ messages in thread
From: Bernd Steinhauser @ 2008-10-11 22:00 UTC (permalink / raw)
  To: zsh-workers

Hi,

I tried latest version (4.3.6) as well as cvs and with both this test fails.
I have been told on IRC to report it to the list.
As I found out, the reason is that it doesn't ignore the file 
/etc/zsh/zshenv.

Regards,
Bernd

./Y02compmatch.ztst: starting. 
 

*** /tmp/zsh.ztst.out.9557      Sat Oct 11 23:09:35 2008 
 

--- /tmp/zsh.ztst.tout.9557     Sat Oct 11 23:09:35 2008 
 

*************** 
 

*** 1,8 **** 
 

   line: {tst ab}{} 
 

   COMPADD:{} 
 

   INSERT_POSITIONS:{6} 
 

- NO:{abC} 
 

   NO:{abc} 
 

   line: {tst abC }{} 
 

   COMPADD:{} 
 

   INSERT_POSITIONS:{7} 
 

--- 1,8 ---- 
 

   line: {tst ab}{} 
 

   COMPADD:{} 
 

   INSERT_POSITIONS:{6} 
 

   NO:{abc} 
 

+ NO:{abC} 
 

   line: {tst abC }{} 
 

   COMPADD:{}
   INSERT_POSITIONS:{7}
Test ./Y02compmatch.ztst failed: output differs from expected as shown 
above for:
  lower_insensitive_M="M:{a-z}={A-Z}"
  lower_insensitive_m="m:{a-z}={A-Z}"
  example2_list=(ABC Abc abc)
  test_code $lower_insensitive_M example2_list
  comptest $'tst ab\tC\t'
Was testing: Documentation example for lowercase insenitive M, input 
"ab\tC\t"
./Y02compmatch.ztst: test failed.


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

* Re: 4.3.6/cvs: Test failed: Y02compmatch.ztst
  2008-10-11 22:00 4.3.6/cvs: Test failed: Y02compmatch.ztst Bernd Steinhauser
@ 2008-10-11 22:16 ` Peter Stephenson
  2008-10-11 22:38   ` Bernd Steinhauser
  2008-10-11 23:47   ` Bart Schaefer
  0 siblings, 2 replies; 6+ messages in thread
From: Peter Stephenson @ 2008-10-11 22:16 UTC (permalink / raw)
  To: Bernd Steinhauser; +Cc: zsh-workers

On Sun, 12 Oct 2008 00:00:45 +0200
Bernd Steinhauser <bernd@bernd-steinhauser.de> wrote:
> I tried latest version (4.3.6) as well as cvs and with both this test fails.
> I have been told on IRC to report it to the list.
> As I found out, the reason is that it doesn't ignore the file 
> /etc/zsh/zshenv.
> 
> Test ./Y02compmatch.ztst failed: output differs from expected as shown 
> above for:

This is a hard sort of problem to fix, since by deliberate policy
/etc/zshenv (or equivalent) is executed by every shell.  Also, I don't
know what it is in your file that is causing the problem.  Does this fix
it?

Index: Test/comptest
===================================================================
RCS file: /cvsroot/zsh/zsh/Test/comptest,v
retrieving revision 1.16
diff -u -r1.16 comptest
--- Test/comptest	25 Jun 2001 03:06:35 -0000	1.16
+++ Test/comptest	11 Oct 2008 22:14:35 -0000
@@ -25,6 +25,7 @@
   }
 
   comptesteval \
+"emulate -R zsh" \
 "export ZDOTDIR=$ZTST_testdir" \
 "module_path=( $module_path )" \
 "fpath=( $fpath )" \

-- 
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


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

* Re: 4.3.6/cvs: Test failed: Y02compmatch.ztst
  2008-10-11 22:16 ` Peter Stephenson
@ 2008-10-11 22:38   ` Bernd Steinhauser
  2008-10-11 23:47   ` Bart Schaefer
  1 sibling, 0 replies; 6+ messages in thread
From: Bernd Steinhauser @ 2008-10-11 22:38 UTC (permalink / raw)
  To: Peter Stephenson; +Cc: zsh-workers

Sadly, that doesn't fix it.

You can see the file in question below.
I did a bit of research and found a few things out.
The important part there is the ". /etc/profile.env".
Looking at profile.env (which is autogenerated from /etc/env.d) and 
unsetting LANG and LC_ALL fixed the problem, they were both set to
de_DE.UTF-8.

Regards,
Bernd

# /etc/zsh/zprofile
# Copyright 2008 Bernd Steinhauser <berniyh@exherbo.org>
# Distributed under the terms of the GNU General Public License v2
# Based in part upon 'zprofile' from Gentoo, which is:
#     Copyright 1999-2008 Gentoo Foundation.


# Load environment settings from profile.env, which is created by
# "eselect env update" from the files in /etc/env.d
if [[ -e /etc/profile.env ]] ; then
         . /etc/profile.env
fi

#077 would be more secure, but 022 is generally quite realistic
umask 022

# Set up PATH depending on whether we're root or a normal user.
# There's no real reason to exclude sbin paths from the normal user,
# but it can make tab-completion easier when they aren't in the
# user's PATH to pollute the executable namespace.
#
# It is intentional in the following line to use || instead of -o.
# This way the evaluation can be short-circuited and calling whoami is
# avoided.
if [[ "$EUID" = "0" ]] || [[ "$USER" = "root" ]] ; then
 
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}"
else
         PATH="/usr/local/bin:/usr/bin:/bin:${PATH}"
fi
export PATH
unset ROOTPATH

shopts=$-
setopt nullglob
for sh in /etc/profile.d/*.sh ; do
         if [[ -r "$sh" ]] ; then
                 . "$sh"
         fi
done
unsetopt nullglob
set -$shopts
unset sh shopts


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

* Re: 4.3.6/cvs: Test failed: Y02compmatch.ztst
  2008-10-11 22:16 ` Peter Stephenson
  2008-10-11 22:38   ` Bernd Steinhauser
@ 2008-10-11 23:47   ` Bart Schaefer
  2008-10-11 23:49     ` Bart Schaefer
  1 sibling, 1 reply; 6+ messages in thread
From: Bart Schaefer @ 2008-10-11 23:47 UTC (permalink / raw)
  To: zsh-workers

On Oct 11, 11:16pm, Peter Stephenson wrote:
}
} This is a hard sort of problem to fix, since by deliberate policy
} /etc/zshenv (or equivalent) is executed by every shell.

I think you can avoid it by executing "zsh -o noglobalrcs" ...?  So
try that on the "zpty -n -w zsh ..." line?


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

* Re: 4.3.6/cvs: Test failed: Y02compmatch.ztst
  2008-10-11 23:47   ` Bart Schaefer
@ 2008-10-11 23:49     ` Bart Schaefer
  2008-10-14  9:15       ` Bernd Steinhauser
  0 siblings, 1 reply; 6+ messages in thread
From: Bart Schaefer @ 2008-10-11 23:49 UTC (permalink / raw)
  To: zsh-workers

On Oct 11,  4:47pm, Bart Schaefer wrote:
}
} I think you can avoid it by executing "zsh -o noglobalrcs" ...?  So
} try that on the "zpty -n -w zsh ..." line?

Er, sorry, I mean on the
  zpty zsh "$comptest_zsh -f +Z"
line.


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

* Re: 4.3.6/cvs: Test failed: Y02compmatch.ztst
  2008-10-11 23:49     ` Bart Schaefer
@ 2008-10-14  9:15       ` Bernd Steinhauser
  0 siblings, 0 replies; 6+ messages in thread
From: Bernd Steinhauser @ 2008-10-14  9:15 UTC (permalink / raw)
  To: zsh-workers; +Cc: Bart Schaefer

I tried this, but it didn't work.
The thing I don't get here is, that if those tests fail under a specific 
LANG/LC_ALL setting, shouldn't either the test be reworked or maybe all 
tests should be run using LC_ALL=C etc?

Bart Schaefer wrote:
> On Oct 11,  4:47pm, Bart Schaefer wrote:
> }
> } I think you can avoid it by executing "zsh -o noglobalrcs" ...?  So
> } try that on the "zpty -n -w zsh ..." line?
> 
> Er, sorry, I mean on the
>   zpty zsh "$comptest_zsh -f +Z"
> line.
> 


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

end of thread, other threads:[~2008-10-14  9:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-11 22:00 4.3.6/cvs: Test failed: Y02compmatch.ztst Bernd Steinhauser
2008-10-11 22:16 ` Peter Stephenson
2008-10-11 22:38   ` Bernd Steinhauser
2008-10-11 23:47   ` Bart Schaefer
2008-10-11 23:49     ` Bart Schaefer
2008-10-14  9:15       ` 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).