]> xenbits.xensource.com Git - libvirt.git/commit
tests: Fix parallel runs of TLS test suites
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 9 Aug 2013 07:53:30 +0000 (09:53 +0200)
committerEric Blake <eblake@redhat.com>
Tue, 13 Aug 2013 02:20:00 +0000 (20:20 -0600)
commit3be7a30426d215ed50938d3674c50097b33953bf
tree9e7f4743153a2a33ec1776f6b4459f9ab4a66445
parent81b191577313104cacf48077c7b1a00d0e838dcb
tests: Fix parallel runs of TLS test suites

I noticed this yesterday and fixed it in a different way, but ended up
with one more problem.  It was probably the way I fixed it combined
with one more filename changed.

Anyway, why I'm saying this is that one more filename should be renamed
in order to avoid a race (which I was unable to reproduce, though).

I checked this is the last file those two tests have in common by going
through the code and the re-checked by this "script":

strace -o session.trace -e open ./virnettlssessiontest
strace -o context.trace -e open ./virnettlscontexttest
sort \
 <(sed -n '/^open/s/open("\([^"]*\)",.*$/\1/p' context.trace | sort -u)\
 <(sed -n '/^open/s/open("\([^"]*\)",.*$/\1/p' session.trace | sort -u)\
 | uniq -d| grep '.pem$'

So it should be enough to make these tests independent of each other.

Signed-off-by: Eric Blake <eblake@redhat.com>
tests/virnettlscontexttest.c
tests/virnettlssessiontest.c