From 0e6697dbc6ba4d92c215fc0e8eab367db58ef8f3 Mon Sep 17 00:00:00 2001
From: ADmad <admad.coder@gmail.com>
Date: Tue, 22 Nov 2011 02:00:58 +0530
Subject: [PATCH] Skipping failing test when run through web browser.

---
 lib/Cake/Test/Case/Core/AppTest.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/Cake/Test/Case/Core/AppTest.php b/lib/Cake/Test/Case/Core/AppTest.php
index c6691d1f3..50f64005d 100644
--- a/lib/Cake/Test/Case/Core/AppTest.php
+++ b/lib/Cake/Test/Case/Core/AppTest.php
@@ -343,6 +343,9 @@ class AppTest extends CakeTestCase {
  */
 	public function testListObjectsIgnoreDotDirectories() {
 		$path = CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS;
+
+		$this->skipIf(!is_writable($path), $path . ' is not writable.');
+
 		App::build(array(
 			'plugins' => array($path)
 		), App::RESET);