aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Files/ViewTest.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-07-08 15:55:17 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-07-08 15:55:17 +0200
commitc2d88a08b796ca19c8b5ec63bfd34ac32ead4208 (patch)
treef18e0ba4d05361456a6712378ccc0784620c1e9c /tests/lib/Files/ViewTest.php
parent48f9e4ed03f3148d62919a95496ee43164d3e707 (diff)
downloadnextcloud-server-c2d88a08b796ca19c8b5ec63bfd34ac32ead4208.tar.gz
nextcloud-server-c2d88a08b796ca19c8b5ec63bfd34ac32ead4208.zip
Remove unneeded checks if it runs on a Windows machine
* the setup check is still there
Diffstat (limited to 'tests/lib/Files/ViewTest.php')
-rw-r--r--tests/lib/Files/ViewTest.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/lib/Files/ViewTest.php b/tests/lib/Files/ViewTest.php
index 87feb63888d..72a91614100 100644
--- a/tests/lib/Files/ViewTest.php
+++ b/tests/lib/Files/ViewTest.php
@@ -104,7 +104,7 @@ class ViewTest extends \Test\TestCase {
$cache->clear();
}
- if ($this->tempStorage && !\OC_Util::runningOnWindows()) {
+ if ($this->tempStorage) {
system('rm -rf ' . escapeshellarg($this->tempStorage->getDataDir()));
}
@@ -761,14 +761,10 @@ class ViewTest extends \Test\TestCase {
/*
* 4096 is the maximum path length in file_cache.path in *nix
* 1024 is the max path length in mac
- * 228 is the max path length in windows
*/
$folderName = 'abcdefghijklmnopqrstuvwxyz012345678901234567890123456789';
$tmpdirLength = strlen(\OC::$server->getTempManager()->getTemporaryFolder());
- if (\OC_Util::runningOnWindows()) {
- $this->markTestSkipped('[Windows] ');
- $depth = ((260 - $tmpdirLength) / 57);
- } elseif (\OC_Util::runningOnMac()) {
+ if (\OC_Util::runningOnMac()) {
$depth = ((1024 - $tmpdirLength) / 57);
} else {
$depth = ((4000 - $tmpdirLength) / 57);