summaryrefslogtreecommitdiffstats
path: root/tests/lib/archive/tar.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/archive/tar.php')
-rw-r--r--tests/lib/archive/tar.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/lib/archive/tar.php b/tests/lib/archive/tar.php
index d831487b16f..2b5271edd52 100644
--- a/tests/lib/archive/tar.php
+++ b/tests/lib/archive/tar.php
@@ -8,12 +8,16 @@
require_once 'archive.php';
-if (!OC_Util::runningOnWindows()) {
class Test_Archive_TAR extends Test_Archive {
public function setUp() {
- if (floatval(phpversion())>=5.5) {
+ parent::setUp();
+
+ if (floatval(phpversion()) >= 5.5) {
$this->markTestSkipped('php 5.5 changed unpack function.');
- return;
+ }
+
+ if (OC_Util::runningOnWindows()) {
+ $this->markTestSkipped('[Windows] tar archives are not supported on Windows');
}
}
protected function getExisting() {
@@ -25,4 +29,3 @@ class Test_Archive_TAR extends Test_Archive {
return new OC_Archive_TAR(OCP\Files::tmpFile('.tar.gz'));
}
}
-}