test with predictable hashes#5
test with predictable hashes#5szabgab wants to merge 2 commits intomschilli:masterfrom szabgab:hashes
Conversation
|
Wouldn't this skip all tests on older perls that don't have this hash jumble feature at all and therefore don't cause the problem? |
|
Oh right, so you probably also need to condition it on >= 5.18 |
|
closed by mistake (screen is to small and I only saw the close button :) |
|
Can you explain what the code does? On my Macbook perl neither of these variables are set. Are they set on yours? |
|
Hmm, what I did there was I think a bit stupid. Only the problematic cases should be wrapped in the skip block and that should also be conditioned on the version of Perl. Then you'd run the test as PERL_PERTURB_KEYS=0 PERL_HASH_SEED=1 prove -lv t/001Basic.t or as PERL_PERTURB_KEYS=0 PERL_HASH_SEED=1 make test |
|
Does adding $ENV{ PERL_PERTURB_KEYS } = "DETERMINISTIC"; to t/001Basic.t also work with your perl version? |
|
As far as I understand (and checked) one needs to set those environment variable before perl starts to run, so we cannot do it in the test script. It has to be done in the environment. See the examples in the code. but I have not updated the comment yet. I think the most recent change I pushed will work. I tested it on 5.18.0 and now it works both with and without the environment variables. |
No description provided.