Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.2.0
-
None
-
Debian GNU/Linux unstable, using the autotools build
-
Patch
Description
When using the autotools build and running make with the -j flag (to build in parallel), tests randomly fail. There seem to be two main causes.
The first is a race condition between when the "observed" directory is tested for existence and when it is created. Adding the -p flag to mkdir allows it to ignore failure on the exiting directory.
The second is that most of the ThreadTest tests are being written to the same logfile (ThreadTest1.log). This causes write contention and all sorts of odd results. Using separate logs for each test removes allows the writes to happen in any order without conflicting.
Patch attached.