]> git.lyx.org Git - features.git/commit
ctests: fix race condition for parallel testing
authorScott Kostyshak <skostysh@lyx.org>
Sun, 15 Nov 2020 22:40:02 +0000 (17:40 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Sun, 15 Nov 2020 22:40:02 +0000 (17:40 -0500)
commitdbb72a370aa8117c7dee645b195664115a7b70ed
treede5f0b147a04eefd4131ab3f30dc97dafadb4d61
parentb75b0d2a833860b3e17ac53bb094c5a6453fc19e
ctests: fix race condition for parallel testing

The unicode tests would often fail when tested in parallel because
we were not exporting to unique file names. From what I understand,
a variant similar to the following race condition occurred:

1. Thread A exports to file blah.pdf.
2. Thread B exports to file blah.pdf.
3. Thread A confirms file blah.pdf exists.
4. Thread A deletes exported file blah.pdf to clean up.
5. Thread B fails to find file blah.pdf and reports a failure.
development/autotests/export.cmake