summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2016-04-05 16:13:28 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2016-04-05 16:13:28 +0200
commit4445ef82e02acd14b4a15a8c113c3a8409fda313 (patch)
tree0f8de61e8e23a1b4b42cf2067e3f83074d44ff71
parent90335ee2a1f214b32670ab2c65f8f87c95a71828 (diff)
downloadnextcloud-server-4445ef82e02acd14b4a15a8c113c3a8409fda313.tar.gz
nextcloud-server-4445ef82e02acd14b4a15a8c113c3a8409fda313.zip
Test locking with strange filename
-rw-r--r--tests/lib/lock/lockingprovider.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/lock/lockingprovider.php b/tests/lib/lock/lockingprovider.php
index ca72c1bb7f3..49742baa561 100644
--- a/tests/lib/lock/lockingprovider.php
+++ b/tests/lib/lock/lockingprovider.php
@@ -112,12 +112,14 @@ abstract class LockingProvider extends TestCase {
$this->instance->acquireLock('foo', ILockingProvider::LOCK_SHARED);
$this->instance->acquireLock('bar', ILockingProvider::LOCK_SHARED);
$this->instance->acquireLock('asd', ILockingProvider::LOCK_EXCLUSIVE);
+ $this->instance->acquireLock('fizz#A=23', ILockingProvider::LOCK_EXCLUSIVE);
$this->instance->releaseAll();
$this->assertFalse($this->instance->isLocked('foo', ILockingProvider::LOCK_SHARED));
$this->assertFalse($this->instance->isLocked('bar', ILockingProvider::LOCK_SHARED));
$this->assertFalse($this->instance->isLocked('asd', ILockingProvider::LOCK_EXCLUSIVE));
+ $this->assertFalse($this->instance->isLocked('fizz#A=23', ILockingProvider::LOCK_EXCLUSIVE));
}
public function testReleaseAllAfterChange() {