From: Sebastian Gniazdowski <psprint3@fastmail.com>
To: zsh-workers@zsh.org
Subject: Re: V11db_gdbm.ztst fails on Cygwin
Date: Thu, 02 Mar 2017 03:47:40 -0800 [thread overview]
Message-ID: <1488455260.47056.897968424.73CCAA35@webmail.messagingengine.com> (raw)
In-Reply-To: <22600020-4905-4E9B-86DE-663907DBB39C@kba.biglobe.ne.jp>
On Thu, Mar 2, 2017, at 02:52 AM, Jun T. wrote:
> @@ -1,4 +1,4 @@
> -c
> -d
> a
> b
> +c
> +d
>
> ${(k)dabse} gives 'a c', instead of 'c a' as expeced by the test.
> The order the records are visited by gdbm_{firstkey,nextkey}()
> depends on the hash values used by gdbm, and (due to some reason
> unknown to me) it seems the hash values used on Cygwin are different
> from those used on Linux.
(...)
> Is it really necessary to test that gdbm_{firstkey,nextkey}()
> gives the same order on different OSs?
Was counting on determinism here. A fragile thing, but determinism
should guarantee this. Wonder why Cygwin's gdbm flips order.
Any idea how to write test result so that both hash key orders match?
--
Sebastian Gniazdowski
psprint3@fastmail.com
next prev parent reply other threads:[~2017-03-02 11:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-02 10:52 Jun T.
2017-03-02 11:47 ` Sebastian Gniazdowski [this message]
2017-03-02 11:54 ` Peter Stephenson
2017-03-02 11:54 ` Daniel Shahaf
2017-03-02 12:14 ` Sebastian Gniazdowski
2017-03-02 15:16 ` Sebastian Gniazdowski
2017-03-02 23:56 ` Jun T.
2017-03-03 11:06 ` 淳一 滝本
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=1488455260.47056.897968424.73CCAA35@webmail.messagingengine.com \
--to=psprint3@fastmail.com \
--cc=zsh-workers@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).