diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-11-05 16:47:27 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-11-10 11:05:17 +0100 |
commit | a9c2e5a08e4a909a94f441c96a3ea000e9420ca3 (patch) | |
tree | f4ba55943a5b660f180b2c52e93f3cf8a8bff5d5 | |
parent | f2282e4251585761500a319c10d697e9a1900444 (diff) | |
download | nextcloud-server-a9c2e5a08e4a909a94f441c96a3ea000e9420ca3.tar.gz nextcloud-server-a9c2e5a08e4a909a94f441c96a3ea000e9420ca3.zip |
Windows does not support CHMOD, therefor we can not test not writable folders
-rw-r--r-- | tests/lib/tempmanager.php | 8 | ||||
-rw-r--r-- | tests/lib/utilcheckserver.php | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/lib/tempmanager.php b/tests/lib/tempmanager.php index f16fbce2c7c..85b94094393 100644 --- a/tests/lib/tempmanager.php +++ b/tests/lib/tempmanager.php @@ -122,6 +122,10 @@ class TempManager extends \PHPUnit_Framework_TestCase { } public function testLogCantCreateFile() { + if (\OC_Util::runningOnWindows()) { + $this->markTestSkipped('[Windows] chmod() does not work as intended on Windows.'); + } + $logger = $this->getMock('\Test\NullLogger'); $manager = $this->getManager($logger); chmod($this->baseDir, 0500); @@ -132,6 +136,10 @@ class TempManager extends \PHPUnit_Framework_TestCase { } public function testLogCantCreateFolder() { + if (\OC_Util::runningOnWindows()) { + $this->markTestSkipped('[Windows] chmod() does not work as intended on Windows.'); + } + $logger = $this->getMock('\Test\NullLogger'); $manager = $this->getManager($logger); chmod($this->baseDir, 0500); diff --git a/tests/lib/utilcheckserver.php b/tests/lib/utilcheckserver.php index be5596c1900..73a1d0e95a6 100644 --- a/tests/lib/utilcheckserver.php +++ b/tests/lib/utilcheckserver.php @@ -138,6 +138,10 @@ class Test_Util_CheckServer extends PHPUnit_Framework_TestCase { * Tests an error is given when the datadir is not writable */ public function testDataDirNotWritable() { + if (\OC_Util::runningOnWindows()) { + $this->markTestSkipped('[Windows] chmod() does not work as intended on Windows.'); + } + chmod($this->datadir, 0300); $result = \OC_Util::checkServer($this->getConfig(array( 'installed' => true, |