Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-12-03 14:38:45 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2020-12-07 17:44:04 +0300
commita25b46f49477a05956d6a299bdb39b502f79aefa (patch)
treebc1f33c5f7519295454e623e7b1961579323adb2 /tests/lib/LargeFileHelperGetFileSizeTest.php
parentb98fbcb7746772beb389607ecccdcb0003cfe8e9 (diff)
Make sure we can also run with escapedshell args
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/LargeFileHelperGetFileSizeTest.php')
-rw-r--r--tests/lib/LargeFileHelperGetFileSizeTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lib/LargeFileHelperGetFileSizeTest.php b/tests/lib/LargeFileHelperGetFileSizeTest.php
index e21ac4ee64b..3066d48792b 100644
--- a/tests/lib/LargeFileHelperGetFileSizeTest.php
+++ b/tests/lib/LargeFileHelperGetFileSizeTest.php
@@ -60,6 +60,9 @@ class LargeFileHelperGetFileSizeTest extends TestCase {
* @dataProvider dataFileNameProvider
*/
public function testGetFileSizeViaExec($filename, $fileSize) {
+ if (escapeshellarg('strängé') !== '\'strängé\'') {
+ $this->markTestSkipped('Your escapeshell args removes accents');
+ }
if (!\OC_Helper::is_function_enabled('exec')) {
$this->markTestSkipped(
'The exec() function needs to be enabled for this test.'