kazuho/p5-test-mysqld — pull request #5 by lecstor (2011-12-06 14:41:15+00:00)
Title: Use MySQL option --tmpdir to prevent multiple MySQL processes clashing.

- added --tmpdir option to mysql commands in setup and start methods.

Without the --tmpdir option MySQL creates temporary files in the system tmp dir without much randomisation of the file names. I easily got clashes when running parrallel tests with prove -j4.
I have added some tests which should be run in parallel with `prove -j4 t/1*`.
Without the tmpdir set, most of the time at least one of these tests will crash.
With tmpdir set I'm not seeing these issues.

I think I've fixed it with these changes, but please be sure to check it out for yourself.

cheers,

J