Skip to content
Snippets Groups Projects
Commit f5b62fb2 authored by Robin Appelman's avatar Robin Appelman
Browse files

skip some test for storage backends that don't support touch

parent a203a4a1
Branches
No related tags found
No related merge requests found
......@@ -176,8 +176,9 @@ abstract class Test_FileStorage extends UnitTestCase {
$this->assertEqual($stat['ctime'],$cTime);
$mtimeStart=time();
$this->instance->touch('/lorem.txt');
$supportsTouch = $this->instance->touch('/lorem.txt');
$mtimeEnd=time();
if($supportsTouch !== false){
$originalCTime=$cTime;
$cTime=$this->instance->filectime('/lorem.txt');
$mTime=$this->instance->filemtime('/lorem.txt');
......@@ -191,6 +192,7 @@ abstract class Test_FileStorage extends UnitTestCase {
$mTime=$this->instance->filemtime('/lorem.txt');
$this->assertEqual($mTime,100);
}
}
$mtimeStart=time();
$fh=$this->instance->fopen('/lorem.txt','a');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment