From 4172bd97acde74772ffd70693a5648096a3b5862 Mon Sep 17 00:00:00 2001
From: Susanne Moog <typo3@susannemoog.de>
Date: Sat, 30 Jun 2012 15:45:00 +0200
Subject: [PATCH] [BUGFIX]  Fix unit test failure if gif compress is disabled

If gif_compress is disabled in the install tool, the
test gifCompressFixesPermissionOfConvertedFileIfUsingGd
fails, as the method it tests only does things if
gif_compress is enabled.

Change-Id: I91603452e43188cd38afeb3ca8b38e2913848e66
Fixes: #38501
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/12473
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
---
 tests/Unit/t3lib/class.t3lib_divTest.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/Unit/t3lib/class.t3lib_divTest.php b/tests/Unit/t3lib/class.t3lib_divTest.php
index 305165de3fa9..e8e658e7244d 100644
--- a/tests/Unit/t3lib/class.t3lib_divTest.php
+++ b/tests/Unit/t3lib/class.t3lib_divTest.php
@@ -261,6 +261,8 @@ class t3lib_divTest extends tx_phpunit_testcase {
 		$GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib'] = TRUE;
 		$GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib_png'] = FALSE;
 
+		$GLOBALS['TYPO3_CONF_VARS']['GFX']['gif_compress'] = TRUE;
+
 			// Copy file to unique filename in typo3temp, set target permissions and run method
 		$testFilename = PATH_site . 'typo3temp/' . uniqid('test_') . '.gif';
 		@copy($fixtureGifFile, $testFilename);
-- 
GitLab