From 7ff6a642b48ded0417f3555b6ecc9a115af51a91 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 5 Nov 2013 16:58:05 +0100 Subject: Fixed filesize issue in watchr test Added clearstatcache to make sure we get the correct file size after re-writing into the same file. This failed on openSUSE 12.3 x86_64 --- tests/lib/files/cache/watcher.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/lib/files/cache/watcher.php b/tests/lib/files/cache/watcher.php index 749b1ab75a3..1920c276907 100644 --- a/tests/lib/files/cache/watcher.php +++ b/tests/lib/files/cache/watcher.php @@ -53,6 +53,9 @@ class Watcher extends \PHPUnit_Framework_TestCase { $cache->put('bar.test', array('storage_mtime' => 10)); $storage->file_put_contents('bar.test', 'test data'); + // make sure that PHP can read the new size correctly + clearstatcache(); + $updater->checkUpdate('bar.test'); $cachedData = $cache->get('bar.test'); $this->assertEquals(9, $cachedData['size']); -- cgit v1.2.3