hash: Close or flush sha256 output ports before calling their 'get' procedure.
authorLudovic Courtès <ludo@gnu.org>
Wed, 8 Mar 2017 14:04:18 +0000 (15:04 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 8 Mar 2017 22:42:52 +0000 (23:42 +0100)
commit6f38960055e496193a49d690d7f1b5516b2b8625
treef0ccd5ab8e87ef311f5a11a5fe4452e6f638bdfa
parent19c1ac8d88b0925863623530ee65ac40861c2d8d
hash: Close or flush sha256 output ports before calling their 'get' procedure.

Slightly different buffering of custom binary output ports in Guile 2.1.7
would lead tests missing 'close-port' or 'force-output' to fail.

* tests/hash.scm ("open-sha256-port, hello"): Add call to 'force-output'
before call to 'get'.
* tests/nar.scm ("write-file puts file in C locale collation order"):
Call 'close-port' before calling 'get-hash'.
tests/hash.scm
tests/nar.scm