Fix and re-enable Dumps' checkpoint tests
authorChristian Aistleitner <christian@quelltextlich.at>
Thu, 19 Feb 2015 23:42:31 +0000 (00:42 +0100)
committerChristian Aistleitner <christian@quelltextlich.at>
Thu, 19 Feb 2015 23:56:40 +0000 (00:56 +0100)
commit73c6f525e0fa798642a389e478a5848f1dfe09bb
tree396b564a8c9c13760affd13a81f0164617ce4814
parent7f687cc858ed664a0e614f93b461d874f1cd1ef2
Fix and re-enable Dumps' checkpoint tests

It seems that fread can now bring 0.5MB into a buffer at once. That
recently made the checkpoint tests erratic, as they relied on the
backupTestPass.inc dump reading loop taking at least two rounds, as
only the second round can trigger creating the second checkpoint file.

By taking advantage of the just added parameter to set the buffer
size, we lower the used buffer size for the tests. Thereby, we force
more than one iteration of the dump reading loop, and finally make the
tests pass again reliably.
Hence, the tests get enabled again.

Bug: T70653
Change-Id: I4449b42558ada8bd579a33b651f2a630a47bfe1c
tests/phpunit/maintenance/backupTextPassTest.php