Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: V11db_gdbm.ztst fails on Cygwin
- X-seq: zsh-workers 40695
- From: Sebastian Gniazdowski <psprint3@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: V11db_gdbm.ztst fails on Cygwin
- Date: Thu, 02 Mar 2017 03:47:40 -0800
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=iBiGe/BPsYLbuf8AvbmgrSbri/ g=; b=kAHiwBQ7j5SBERO3acbOd7ueYxpWK9mbeXL1rKj2MyKuGKoimbZWddzEde OcXInpldcBfmLxG1dPAeTFGzlzp0gUxrVW4bUjZvfUQyMu0AxtuidgE/csZFEHZn 2PDYYM+FygbCHqFVKYf17RRoMc99i4Cu8GgIYoxj58vxz8sXA=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=smtpout; bh=iB iGe/BPsYLbuf8AvbmgrSbri/g=; b=uHDpLfeBRlXf3NOKc3Imn+ziRp3jkcxcvC v4gFFfmHO2WnsIKab1mY6tSdJkEJOxuGv9Rp7G2nQmC7aM4X2dA9cRpWEsmcXBdI /NPEHzsZiS449H51l4vubHfL40SQJs1sEaD1Jm3fz3trSZ1R9DAaIHSUPa3KccsU j63cldZME=
- In-reply-to: <22600020-4905-4E9B-86DE-663907DBB39C@kba.biglobe.ne.jp>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <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@xxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author