]> www.wagner.pp.ru Git - openssl-gost/engine.git/commit
test: parallel testsuite runs failed due to reused filenames 469/head
authorAdrien Nader <adrien.nader@canonical.com>
Tue, 25 Mar 2025 09:07:50 +0000 (10:07 +0100)
committerAdrien Nader <adrien.nader@canonical.com>
Tue, 25 Mar 2025 09:29:32 +0000 (10:29 +0100)
commit34f2c825adce04252c76220d1712c530dda31fef
tree1e0919ef76971fa73c7ace25b6becf32ea66421f
parentede3886cc5507c2ba000ab9b057f198da03e8766
test: parallel testsuite runs failed due to reused filenames

Cmake can run tests in parallel and does so for the perl tests. These
are actually the same tests twice but in "engine" and "provider"
variants.

These tests contain something like the following:
- create testdata.dat
- write to it
- use the file
- unlink the file

When two of these run in parallel, a likely scenario is the file is
unlinked by one while still being needed by the second.

This commit simply prefixes the filenames with "$ARGV[0]-" which is
either "engine-" or "provider-". With unique names, there are no more
overlaps.

PS: I had first looked for ways to disable parallel test execution (when
I thought it was perl running tests in parallel rather than cmake) but
found no way to do that in CMakeLists.txt, only through an environment
variable or by changing the command-line invocation, both of which where
far less appropriate both for distribution patches and upstreaming.
test/00-engine.t
test/01-digest.t
test/02-mac.t
test/03-encrypt.t