bind9/bin/tests/system/metadata
Michał Kępień 9a76ffc61f Do not call bin/tools/genrandom unconditionally in system tests
$RANDFILE, i.e. bin/tests/system/random.data, should only be written to
if a system test requires support for cryptography and that file does
not already exist.  Otherwise, when multiple system tests are run in
parallel, that file might get truncated due to bin/tools/genrandom.c
using fopen() with mode "w" when writing the destination file.  With
unfortunate timing, this may cause system tests employing BIND tools
which need entropy (e.g. dnssec-keygen) to fail.

Make sure bin/tests/system/metadata/tests.sh no longer calls
bin/tools/genrandom since $RANDFILE is guaranteed to already be created
by the time bin/tools/genrandom is currently called because
bin/tests/system/metadata/prereq.sh uses bin/tests/system/testcrypto.sh.

Make sure bin/tests/system/sfcache/prereq.sh only writes to $RANDFILE if
it does not already exist.

(cherry picked from commit c12388f5e8)
2018-08-24 09:58:08 +02:00
..
child.db Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
clean.sh update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
parent.db Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
prereq.sh update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
setup.sh update file headers to remove copyright years 2018-03-14 16:40:20 -07:00
tests.sh Do not call bin/tools/genrandom unconditionally in system tests 2018-08-24 09:58:08 +02:00