-
Notifications
You must be signed in to change notification settings - Fork 1
test with predictable hashes #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
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.