zsh-users
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Danek Duvall <duvall@comfychair.org>,
	Peter Stephenson <p.w.stephenson@ntlworld.com>,
	 Zsh Users <zsh-users@zsh.org>
Subject: Re: zsh 5.0.8.-test-3
Date: Wed, 26 Aug 2015 01:09:07 +0200	[thread overview]
Message-ID: <CAHYJk3RMe2pekY36WRgXdPhmD6Zhn9NRraNP9jpF2OMFzcxu2w@mail.gmail.com> (raw)
In-Reply-To: <20150825222245.GA8276@lorien.comfychair.org>

On Wed, Aug 26, 2015 at 12:22 AM, Danek Duvall <duvall@comfychair.org> wrote:
> On Tue, Aug 25, 2015 at 07:48:07PM +0100, Peter Stephenson wrote:
>
>> I've uploaded 5.0.8-test-3 to
>>
>> http://www.zsh.org/pub/development/
>>
>> The changes from 5.0.8.-test-2 are mostly minor; the most significant
>> fixed testing using zpty on OpenBSD, thanks to Jun.
>>
>> If you have a not very common operating system, please try this out;
>> otherwise, 5.1 should be fit to release.
>
> I'm getting the following failure on Solaris (12):
>
>     *** /tmp/zsh.ztst.out.28050     Tue Aug 25 12:45:19 2015
>     --- /tmp/zsh.ztst.tout.28050    Tue Aug 25 12:45:19 2015
>     ***************
>     *** 1,4 ****
>       THURSDAY
>     !    JANUARY
>       090
>       1
>     --- 1,4 ----
>       THURSDAY
>     ! %^_10B
>       090
>       1
>     Test ./V09datetime.ztst failed: output differs from expected as shown above for:
>       if [[ $skip_extensions = 1 ]]; then
>         ZTST_skip="strftime extensions not supported"
>       else
>         (
>           strftime '%#A' 0
>           strftime '%^_10B' 0
>           strftime %03Ey 650000000
>           strftime %-Oe 0
>         )
>       fi
>     Was testing: various extensions
>     ./V09datetime.ztst: test failed.
>
> Any ideas?  Perhaps this particular set of strftime expandos aren't
> supported on Solaris.

So it seems. I don't have access to any obscure operating systems so I
just guessed that if someone supported one extension, they'd support
all of them. The one we test to see if we should skip the test is just
zero-padding though which is pretty easy/obvious to implement. I guess
we can check that one instead / as well. It looks like it supports
both # and E too, so those wouldn't do the trick.

diff --git i/Test/V09datetime.ztst w/Test/V09datetime.ztst
index c935199..902fc6f 100644
--- i/Test/V09datetime.ztst
+++ w/Test/V09datetime.ztst
@@ -8,7 +8,7 @@
   unset LC_ALL
   LC_TIME=C
   TZ=UTC+0
-  [[ "$(strftime %04y 1)" = "0070" ]] || skip_extensions=1
+  [[ "$(strftime %^_10B 0)" = "   JANUARY" ]] || skip_extensions=1
   [[ "$(LC_TIME=ja_JP.UTF-8 strftime %OS 1)" = 一 ]] || skip_japanese=1

 %test

Now the question is if someone supports that one, but not the others
:). (If we try all of them and skip the test, the test approaches
being sort of pointless, except we can notice it was skipped on a
glibc system and realize something is wrong in our parsing.)

-- 
Mikael Magnusson


  reply	other threads:[~2015-08-25 23:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-25 18:48 Peter Stephenson
2015-08-25 21:57 ` Baptiste Daroussin
2015-08-25 22:22 ` Danek Duvall
2015-08-25 23:09   ` Mikael Magnusson [this message]
2015-08-26  1:27     ` Danek Duvall
2015-08-26  2:19       ` Mikael Magnusson
2015-08-26  8:48         ` Peter Stephenson
2015-08-26  9:30           ` Mikael Magnusson
2015-08-28  8:45             ` Peter Stephenson
2015-08-25 22:36 Michael Beasley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHYJk3RMe2pekY36WRgXdPhmD6Zhn9NRraNP9jpF2OMFzcxu2w@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=duvall@comfychair.org \
    --cc=p.w.stephenson@ntlworld.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).