bind9/bin/tests/system/metadata
Michał Kępień c12388f5e8 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.
2018-08-24 09:57:15 +02:00
..
child.db Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:19:35 +02:00
clean.sh Update license headers to not include years in copyright in all applicable files 2018-02-23 10:38:02 +01:00
parent.db Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:19:35 +02:00
prereq.sh Update license headers to not include years in copyright in all applicable files 2018-02-23 10:38:02 +01:00
setup.sh Update license headers to not include years in copyright in all applicable files 2018-02-23 10:38:02 +01:00
tests.sh Do not call bin/tools/genrandom unconditionally in system tests 2018-08-24 09:57:15 +02:00