crypto
crypto copied to clipboard
tests fail on HEAD/release pkg build
See errors here: https://plt.cs.northwestern.edu/release-pkg-build/server/built/test-fail/crypto-test.txt and https://plt.cs.northwestern.edu/pkg-build/server/built/test-fail/crypto-test.txt
The errors look like:
raco test: (submod "/home/root//user/.local/share/racket/snapshot/pkgs/crypto-test/tests/test.rkt" test)
test.rkt: racket test: #<<non-empty stderr
--------------------
kdfs > libcrypto > crypto tests > Unnamed test
ERROR
name: check-equal?
location: kdf.rkt:48:8
match: no matching clause for '#hash(($id . scrypt) (ln . 15) (p . 1) (pwhash . #"?\34\353\373\363]\363\377T\177\367\3170&\31\305\321\362\255\251Uv\302\23\371\362>\1f\322\34B") (r . 8) (salt . #"x\240\31Ci\241E\206\330J\ff\372\213\265Z"))
--------------------
One possibility is that the machine running these tests has different software or hardware, and these tests do not adapt properly.
This looks like a consequence of https://github.com/racket/racket/commit/ef0fb30e85360c5babe04bbb84b88513c3767a40.
I'll just fix the code in crypto-lib by adding _ ... to the hash-table patterns, since that appears to in fact be supported by fairly old versions of Racket.
@sorawee how do you feel about this incompatibility? Is this expected?
I think this is the expected failure, yes. And yes, adding _ ... would fix the issue.