From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=FREEMAIL_FROM, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RDNS_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 Received: (qmail 14550 invoked from network); 28 Mar 2020 00:23:27 -0000 Received-SPF: pass (primenet.com.au: domain of zsh.org designates 203.24.36.2 as permitted sender) receiver=inbox.vuxu.org; client-ip=203.24.36.2 envelope-from= Received: from unknown (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTP; 28 Mar 2020 00:23:27 -0000 Received: (qmail 3115 invoked by alias); 28 Mar 2020 00:23:16 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45641 Received: (qmail 10006 invoked by uid 1010); 28 Mar 2020 00:23:16 -0000 X-Qmail-Scanner-Diagnostics: from mail-ot1-f53.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25758. spamassassin: 3.4.2. Clear:RC:0(209.85.210.53):SA:0(-1.6/5.0):. Processed in 3.877925 secs); 28 Mar 2020 00:23:16 -0000 X-Envelope-From: ethersoft@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.210.53 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VtN+W9VT71vfaHkJHiL1qnk5BzP0Owb/m4cAhGtjV9E=; b=qgWgX1MFJKz0mqthRgvISdvIrKaChXjRw7+E2Nj+Ia17k7BNNVFLBfM8VAV81yh1/2 Yykl65KB11sCVZdjBSCNRWxPlxfHyVFLGD1q+n/gMRKhTLO6wL6SoSf5tp29PKo8IbLy 9ug0ERhJXw/YNNibsa3y6S08NcQRDtj+QZRHh2oYtdhjoCXOV6VgIV4xGNXimyuCLRA0 QOAqZSQhdHzQwLBzCGC2FrZldBABbNI7QLzT/3wTFB5UmX27fZcnBmZfVmbN+Kh8t5V7 zHGQ5WqHXZxXLnGiDnl0mptzOUHFDywQ5xMtwSbierI0H2qMUTYjktak0IHmQ6sRQBp6 8fZg== X-Gm-Message-State: ANhLgQ3kmGtSsBgFkIkNcCqai+7TDLpxT68NuBO10W6+X2xpNkoCHa+f nynNDgkTUo2A4DoyC8kgu7IPOJXbcGWtQccbWTc= X-Google-Smtp-Source: ADFU+vstG8P+SZJ7RcBcW4RX1C8X8ZqgzhbVhPgShSG0rroyKRo0fQLMLSJj3PcW08vdrSYvuQKXubZwZVDhVBvbNFo= X-Received: by 2002:a4a:b141:: with SMTP id e1mr1714961ooo.54.1585354958407; Fri, 27 Mar 2020 17:22:38 -0700 (PDT) MIME-Version: 1.0 References: <20200326220250.11861abd@tarpaulin.shahaf.local2> <20200327231118.5fe53e85@tarpaulin.shahaf.local2> In-Reply-To: <20200327231118.5fe53e85@tarpaulin.shahaf.local2> From: Vin Shelton Date: Fri, 27 Mar 2020 20:20:49 -0400 Message-ID: Subject: Re: pwd -r vs. pwd test failure To: Daniel Shahaf Cc: "Zsh Hackers' List" Content-Type: multipart/alternative; boundary="000000000000238c2e05a1df37d3" --000000000000238c2e05a1df37d3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes! That leaves only a V07 test failure: ZTST_verbose=3D2 make TESTNUM=3DV07 -e check cd Test ; make check make[1]: Entering directory '/SSD-2/opt/build/zsh-2020-03-27/Test' if test -n "gcc"; then \ cd .. && DESTDIR=3D \ make MODDIR=3D`pwd`/Test/Modules install.modules > /dev/null; \ fi if test -z "$ZTST_handler"; then \ ZTST_handler=3Druntests.zsh; \ fi; \ if ZTST_testlist=3D"`for f in ../../../src/zsh-2020-03-27/Test/V07*.ztst; \ do echo $f; done`" \ ZTST_srcdir=3D"../../../src/zsh-2020-03-27/Test" \ ZTST_exe=3D../Src/zsh \ ../Src/zsh +Z -f ../../../src/zsh-2020-03-27/Test/$ZTST_handler; then \ stat=3D0; \ else \ stat=3D1; \ fi; \ sleep 1; \ rm -rf Modules .zcompdump; \ exit $stat ../../../src/zsh-2020-03-27/Test/V07pcre.ztst: starting. ZTST_getsect: read section name: prep ZTST_getchunk: read code chunk: if ! zmodload zsh/pcre 2>/dev/null; then then ZTST_unimplemented=3D"the zsh/pcre module was disabled by configure (se= e config.modules)" return 0 fi setopt rematch_pcre setopt multibyte unset -m LC_\* mb_ok=3D langs=3D(en_{US,GB}.{UTF-,utf}8 en.UTF-8 $(locale -a 2>/dev/null | egrep 'utf8|UTF-8')) for LANG in $langs; do if [[ =C3=A9 =3D ? ]]; then mb_ok=3D1 break; fi done if [[ -z $mb_ok ]]; then ZTST_unimplemented=3D"no UTF-8 locale or multibyte mode is not implemented" else print -u $ZTST_fd Testing PCRE multibyte with locale $LANG mkdir multibyte.tmp && cd multibyte.tmp fi (eval):3: parse error near `ZTST_unimplemented=3D"...' ZTST_execchunk: status 1 Test ../../../src/zsh-2020-03-27/Test/V07pcre.ztst failed: non-zero status from preparation code: if ! zmodload zsh/pcre 2>/dev/null; then then ZTST_unimplemented=3D"the zsh/pcre module was disabled by configure (se= e config.modules)" return 0 fi setopt rematch_pcre setopt multibyte unset -m LC_\* mb_ok=3D langs=3D(en_{US,GB}.{UTF-,utf}8 en.UTF-8 $(locale -a 2>/dev/null | egrep 'utf8|UTF-8')) for LANG in $langs; do if [[ =C3=A9 =3D ? ]]; then mb_ok=3D1 break; fi done if [[ -z $mb_ok ]]; then ZTST_unimplemented=3D"no UTF-8 locale or multibyte mode is not implemented" else print -u $ZTST_fd Testing PCRE multibyte with locale $LANG mkdir multibyte.tmp && cd multibyte.tmp fi ../../../src/zsh-2020-03-27/Test/V07pcre.ztst: test failed. ZTST_getchunk: read code chunk: ZTST_getsect: read section name: test ZTST_test: looking for new test ZTST_test: examining line: ZTST_test: examining line: [[ 'foo=E2=86=92bar' =3D~ .([^[:ascii:]]). ]] ZTST_getchunk: read code chunk: [[ 'foo=E2=86=92bar' =3D~ .([^[:ascii:]]). ]] print $MATCH print $match[1] ZTST_test: examining line: >o=E2=86=92b ZTST_getredir: read redir for '>': o=E2=86=92b =E2=86=92 ZTST_test: examining line: Running test: Basic non-ASCII regexp matching ZTST_test: expecting status: 0 Input: /tmp/zsh.ztst.39712/ztst.in, output: /tmp/zsh.ztst.39712/ztst.out, error: /tmp/zsh.ztst.39712/ztst.terr ZTST_execchunk: status 0 ZTST_test: test produced standard output: 0 ZTST_test: and standard error: (eval):1: failed to compile regex: Invalid character class name --- /tmp/zsh.ztst.39712/ztst.out 2020-03-27 20:14:42.843332930 -0400 +++ /tmp/zsh.ztst.39712/ztst.tout 2020-03-27 20:14:42.843332930 -0400 @@ -1,2 +1,2 @@ -o=E2=86=92b -=E2=86=92 + +0 Test ../../../src/zsh-2020-03-27/Test/V07pcre.ztst failed: output differs from expected as shown above for: [[ 'foo=E2=86=92bar' =3D~ .([^[:ascii:]]). ]] print $MATCH print $match[1] Error output: (eval):1: failed to compile regex: Invalid character class name Was testing: Basic non-ASCII regexp matching ../../../src/zsh-2020-03-27/Test/V07pcre.ztst: test failed. - Vin On Fri, Mar 27, 2020 at 7:11 PM Daniel Shahaf wrote: > Vin Shelton wrote on Fri, 27 Mar 2020 07:56 -0400: > > Almost, but not quite: > > Does this work better? I added another :P. This catches the case that > the source directory isn't a realpath. (The case that the _build_ > directory > isn't a realpath worked since day one.) > > 8<--8<-- > From 57818d5fde2334965dce508e239af754f1fa565f Mon Sep 17 00:00:00 2001 > From: Daniel Shahaf > Date: Thu, 26 Mar 2020 21:41:49 +0000 > Subject: [PATCH] Fix new test when ${PWD}'s value contains symlinks. > > --- > Test/B13whence.ztst | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > > diff --git a/Test/B13whence.ztst b/Test/B13whence.ztst > index ea0a4dae5..3b35835fe 100644 > --- a/Test/B13whence.ztst > +++ b/Test/B13whence.ztst > @@ -1,7 +1,10 @@ > %prep > > mkdir whence.tmp > - pushd whence.tmp > + ln -s . whence.tmp/cwd > + # cd through the symlink in order to test the case that ${prefix} and > + # ${prefix:P} are different > + pushd whence.tmp/cwd > ln -s real step3 > ln -s step3 step2 > ln -s step2 step1 > @@ -16,13 +19,13 @@ > %test > > ( > - path=3D( $PWD/whence.tmp $path ) > + path=3D( ${PWD:P}/whence.tmp $path ) > whence -S step1 > whence -s step1 > ) > 0q:whence symlink resolution > ->$prefix/step1 -> $prefix/step2 -> $prefix/step3 -> $prefix/real > ->$prefix/step1 -> $prefix/real > +>${prefix:P}/step1 -> ${prefix:P}/step2 -> ${prefix:P}/step3 -> > ${prefix:P}/real > +>${prefix:P}/step1 -> ${prefix:P}/real > > ( > path=3D( $PWD/whence.tmp $path ) > > Cheers, > > Daniel > --000000000000238c2e05a1df37d3--