diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-12-03 12:38:45 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-12-07 15:44:04 +0100 |
commit | a25b46f49477a05956d6a299bdb39b502f79aefa (patch) | |
tree | bc1f33c5f7519295454e623e7b1961579323adb2 /tests/lib | |
parent | b98fbcb7746772beb389607ecccdcb0003cfe8e9 (diff) | |
download | nextcloud-server-a25b46f49477a05956d6a299bdb39b502f79aefa.tar.gz nextcloud-server-a25b46f49477a05956d6a299bdb39b502f79aefa.zip |
Make sure we can also run with escapedshell args
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/LargeFileHelperGetFileSizeTest.php | 3 |
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.' |