From a19fd8880d04eb6462c79acd2bbfabe07ce6526b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 10 Nov 2014 11:38:14 +0100 Subject: [PATCH] Fix Files\Storage\Home::testRoot() --- tests/lib/files/storage/home.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/lib/files/storage/home.php b/tests/lib/files/storage/home.php index 51315a2a556..6149213cc72 100644 --- a/tests/lib/files/storage/home.php +++ b/tests/lib/files/storage/home.php @@ -73,7 +73,12 @@ class Home extends Storage { * Tests that the root path matches the data dir */ public function testRoot() { - $this->assertEquals($this->tmpDir, $this->instance->getLocalFolder('')); + if (\OC_Util::runningOnWindows()) { + // Windows removes trailing slashes when returning paths + $this->assertEquals(rtrim($this->tmpDir, '/'), $this->instance->getLocalFolder('')); + } else { + $this->assertEquals($this->tmpDir, $this->instance->getLocalFolder('')); + } } /** -- 2.39.5