race condition in CdbTests
authorAntoine Musso <hashar@free.fr>
Thu, 1 Nov 2012 10:48:18 +0000 (11:48 +0100)
committerAntoine Musso <hashar@free.fr>
Thu, 1 Nov 2012 10:48:18 +0000 (11:48 +0100)
commitcab4d81554739f5bcf8dc19ca8c0acb3b700834a
treee1925c3a2495bad464dea73ac08c166df19e63ed
parent63fa9df088280df300e43bf691bf823e32d8c151
race condition in CdbTests

The CDB tests were attemptying to write in harcoded filename
/tmp/php.cdb and /tmp/dba.cdb. Whenever two jobs were running the same
test, we would end up with a mysteriously failling test. The test now
use random temporary file names.

Change-Id: Ia1e58f0c02418e6d01d6730f97b2103ed87eb4f4
tests/phpunit/includes/CdbTest.php