aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/files/view.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-06-06 10:02:23 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-06-06 10:02:23 +0200
commitff651a3e0d764e72ec3146c0163c80b3a872a05a (patch)
tree164806c6d50d691735a4e13771553db5f1fdb757 /tests/lib/files/view.php
parent79b65269c9e1dd1cd01dc2fd28a979105650fc91 (diff)
parentad4ec414c9e1cf4ff8189040a132ec81bf1fd377 (diff)
downloadnextcloud-server-ff651a3e0d764e72ec3146c0163c80b3a872a05a.tar.gz
nextcloud-server-ff651a3e0d764e72ec3146c0163c80b3a872a05a.zip
Merge pull request #8909 from owncloud/fix-temporary-storage-rmdirr-master
use system function to recursive remove the directory used by temporary ...
Diffstat (limited to 'tests/lib/files/view.php')
-rw-r--r--tests/lib/files/view.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/files/view.php b/tests/lib/files/view.php
index b2e0b59d8e6..8eca55d1fdf 100644
--- a/tests/lib/files/view.php
+++ b/tests/lib/files/view.php
@@ -669,7 +669,6 @@ class View extends \PHPUnit_Framework_TestCase {
$rootView = new \OC\Files\View('');
-
if ($param0 === '@0') {
$param0 = $longPath;
}
@@ -681,6 +680,9 @@ class View extends \PHPUnit_Framework_TestCase {
call_user_func(array($rootView, $operation), $longPath, $param0);
+ if (!\OC_Util::runningOnWindows()) {
+ system('rm -rf ' . escapeshellarg($storage->getDataDir()));
+ }
}
public function tooLongPathDataProvider() {