diff options
author | Anders Kaseorg <andersk@MIT.EDU> | 2013-10-30 04:44:43 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-10-30 10:30:30 -0700 |
commit | 9462953ad25f9ad6ef933908c317dcbbfd4397ed (patch) | |
tree | 21363de163737dbac7321bee4c09be7b00ee67b6 /notes-cache.h | |
parent | 1b48d56cfb006baf12d34b5e3150ba2ec1900e08 (diff) | |
download | git-9462953ad25f9ad6ef933908c317dcbbfd4397ed.tar.gz |
cvsserver: Determinize output to combat Perl 5.18 hash randomizationak/cvsserver-stabilize-use-of-hash-keys
Perl 5.18 randomizes the seed used by its hash function, so iterating
through hashes results in different orders from run to run:
http://perldoc.perl.org/perl5180delta.html#Hash-overhaul
This usually broke t9400 (gitcvs.dbname, gitcvs.ext.dbname, when
running cmp on two .sqlite files) and t9402 (check [cvswork3] diff,
when running test_cmp on two diffs).
To fix this, hide the internal order of hashes with sort when sending
output or running database queries.
(An alternative workaround is PERL_HASH_SEED=0, but this seems nicer.)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes-cache.h')
0 files changed, 0 insertions, 0 deletions